|
@@ -1,32 +1,37 @@
|
|
|
-var HtmlWebpackPlugin = require("html-webpack-plugin");
|
|
|
+var HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
|
var HtmlWebpackPluginConfig = new HtmlWebpackPlugin({
|
|
|
- template: __dirname + "/app/index.html",
|
|
|
- filename: "index.html",
|
|
|
- inject: "body"
|
|
|
+ template: __dirname + '/app/index.html',
|
|
|
+ filename: 'index.html',
|
|
|
+ inject: 'body'
|
|
|
});
|
|
|
|
|
|
module.exports = {
|
|
|
entry: [
|
|
|
- "./app/index.js"
|
|
|
+ './app/index.js'
|
|
|
],
|
|
|
|
|
|
module: {
|
|
|
loaders: [
|
|
|
{
|
|
|
- loader: "babel-loader",
|
|
|
+ loader: 'babel-loader',
|
|
|
test: /\.js$/,
|
|
|
+ include: __dirname + '/app',
|
|
|
exclude: /node_modules/,
|
|
|
query: {
|
|
|
plugins: [],
|
|
|
- presets: ["es2015", "react"]
|
|
|
+ presets: ['es2015', 'react']
|
|
|
}
|
|
|
+ },
|
|
|
+ {
|
|
|
+ loader: 'style-loader!css-loader',
|
|
|
+ test: /\.css$/
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
|
|
|
output: {
|
|
|
- filename: "index_bundle.js",
|
|
|
- path: __dirname + "/dist"
|
|
|
+ filename: 'index_bundle.js',
|
|
|
+ path: __dirname + '/dist'
|
|
|
},
|
|
|
|
|
|
plugins: [
|