-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
32 lines (31 loc) · 910 Bytes
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
'use strict';
var webpack = require('webpack'),
ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
cache: true,
entry: './public/js/app',
output: {
filename: './public/bundle.js'
},
module: {
loaders: [{
test: /\.(jsx|js)$/,
loader: 'jsx-loader'
}, {
test: /\.css$/,
loader: ExtractTextPlugin.extract("style-loader", 'css-loader')
}, {
test: /\.scss$/,
loader: ExtractTextPlugin.extract("style-loader", 'css-loader!sass-loader?outputStyle=expanded')
}]
},
plugins: [
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/), // without this moment pulls in every locale
new ExtractTextPlugin('./public/style.css', {
allChunks: true
})
],
resolve: {
extensions: ['', '.js', '.jsx']
}
};