aboutsummaryrefslogtreecommitdiff
path: root/vnext/webpack.config.js
diff options
context:
space:
mode:
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()
]