|
@@ -1,4 +1,6 @@
|
|
|
const path = require("path");
|
|
|
+const ExamplePlugin = require("./ExamplePlugin");
|
|
|
+const webpack = require("webpack");
|
|
|
|
|
|
module.exports = {
|
|
|
entry: "./src/index.js",
|
|
@@ -31,10 +33,15 @@ module.exports = {
|
|
|
use: [
|
|
|
|
|
|
{
|
|
|
- loader: "file-loader",
|
|
|
- },
|
|
|
+ loader: "file-loader"
|
|
|
+ }
|
|
|
]
|
|
|
}
|
|
|
]
|
|
|
- }
|
|
|
+ },
|
|
|
+ plugins: [
|
|
|
+ new ExamplePlugin({ msg: "Kilroy was here" }),
|
|
|
+ new webpack.optimize.UglifyJsPlugin(),
|
|
|
+ new webpack.ContextReplacementPlugin()
|
|
|
+ ]
|
|
|
};
|