aboutsummaryrefslogtreecommitdiff
path: root/vnext/webpack.config.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-12-20 13:57:15 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:52 +0300
commit4c50a8676b41fdcc5d46e9608da1c9ca9ffb86d8 (patch)
tree533b5e0d5f40484252fbd662e8cc17a0eddab5b4 /vnext/webpack.config.js
parent813c5e7eda90944733d60dd324459ced93c9c087 (diff)
update to React 16
Diffstat (limited to 'vnext/webpack.config.js')
-rw-r--r--vnext/webpack.config.js12
1 files changed, 4 insertions, 8 deletions
diff --git a/vnext/webpack.config.js b/vnext/webpack.config.js
index 8e2af202..79eeaf20 100644
--- a/vnext/webpack.config.js
+++ b/vnext/webpack.config.js
@@ -1,11 +1,10 @@
var webpack = require("webpack");
-var ExtractTextPlugin = require("extract-text-webpack-plugin");
module.exports = {
devtool: 'eval',
entry: {
"vendor": ['react', 'react-dom', 'whatwg-fetch'],
"app": [
- 'file?name=index.html!jade-html!./src/views/index.jade',
+ 'file-loader?name=index.html!jade-html-loader!./src/views/index.jade',
__dirname + "/src/app.js",
__dirname + "/src/style/main.css",
'webpack-dev-server/client?http://localhost:3000',
@@ -18,16 +17,13 @@ module.exports = {
},
module: {
loaders: [
- { test: /\.css$/, loader: ExtractTextPlugin.extract("style-loader", "css-loader") },
- { test: /\.js(x?)$/, exclude: /node_modules/, loader: "react-hot!babel" }
+ { test: /\.css$/, loader: "style-loader!css-loader" },
+ { test: /\.js(x?)$/, exclude: /node_modules/, loader: "babel-loader" }
]
},
plugins: [
- new ExtractTextPlugin("style.css", {
- allChunks: true
- }),
new webpack.optimize.CommonsChunkPlugin(
- "vendor", "vendor.bundle.js"
+ {name: "vendor", filename: "vendor.bundle.js"}
),
new webpack.HotModuleReplacementPlugin()
]