From 359f345ab5739bbd258da9b8a0b053005e392ead Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 20 Dec 2017 14:55:36 +0300 Subject: drop jade, update styles and template --- vnext/webpack.config.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'vnext/webpack.config.js') 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() ] }; -- cgit v1.2.3