diff options
Diffstat (limited to 'vnext/webpack.config.js')
-rw-r--r-- | vnext/webpack.config.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/vnext/webpack.config.js b/vnext/webpack.config.js index 79eeaf20..3935cc01 100644 --- a/vnext/webpack.config.js +++ b/vnext/webpack.config.js @@ -4,7 +4,7 @@ module.exports = { entry: { "vendor": ['react', 'react-dom', 'whatwg-fetch'], "app": [ - 'file-loader?name=index.html!jade-html-loader!./src/views/index.jade', + 'file-loader?name=index.html!./src/views/index.html', __dirname + "/src/app.js", __dirname + "/src/style/main.css", 'webpack-dev-server/client?http://localhost:3000', @@ -18,13 +18,14 @@ module.exports = { module: { loaders: [ { test: /\.css$/, loader: "style-loader!css-loader" }, - { test: /\.js(x?)$/, exclude: /node_modules/, loader: "babel-loader" } + { test: /\.js(x?)$/, exclude: /node_modules/, loader: "babel-loader" }, + { test: /\.(jpe?g|png|gif|svg)$/i, loaders: [ + 'file-loader?hash=sha512&digest=hex&name=[hash].[ext]', + 'image-webpack-loader' + ]} ] }, plugins: [ - new webpack.optimize.CommonsChunkPlugin( - {name: "vendor", filename: "vendor.bundle.js"} - ), new webpack.HotModuleReplacementPlugin() ] }; |