diff options
author | 2017-12-20 14:55:36 +0300 | |
---|---|---|
committer | 2023-01-13 10:37:52 +0300 | |
commit | 359f345ab5739bbd258da9b8a0b053005e392ead (patch) | |
tree | f40f72d5e1e4bc7380beb3d21213567a9a8eae04 /vnext/webpack.config.js | |
parent | a5987ebf9ca3fdb7011a457f63f643b0719b1e01 (diff) |
drop jade, update styles and template
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() ] }; |