summaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorYukai Huang2016-10-09 18:08:46 +0800
committerYukai Huang2016-10-09 18:22:31 +0800
commitd0997ed0c18de0f17ea2f9435558f88e3f0fdd1c (patch)
treeb7def92599caa35255f7977169646c5b683480c3 /webpack.config.js
parent28858288fbc386350022bc4830775d21af217c11 (diff)
Config TextExtract plugin and change build folder
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/webpack.config.js b/webpack.config.js
index cad356fb..8fce2653 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -20,7 +20,8 @@ module.exports = {
}),
new webpack.DefinePlugin({
"require.specified": "require.resolve"
- })
+ }),
+ new ExtractTextPlugin("[name].css")
],
entry: {
@@ -28,7 +29,7 @@ module.exports = {
},
output: {
- path: path.join(__dirname, 'public/build/js'),
+ path: path.join(__dirname, 'public/build'),
filename: '[name].js'
},
@@ -49,10 +50,10 @@ module.exports = {
loader: 'json-loader'
}, {
test: /\.css$/,
- loader: 'style-loader!css-loader'
+ loader: ExtractTextPlugin.extract('style-loader', 'css-loader')
}, , {
test: /\.scss$/,
- loaders: ['style', 'css', 'sass']
+ loader: ExtractTextPlugin.extract('style-loader', 'sass-loader')
}, {
test: require.resolve("js-sequence-diagrams"),
loader: "imports?Raphael=raphael"