-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
27 lines (26 loc) · 891 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
var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: [
'webpack-dev-server/client?http://localhost:1337',
'webpack/hot/dev-server',
'./src/scripts/index'
],
output: {
path: __dirname,
filename: 'bundle.js',
publicPath: '/static/'
},
module: {
loaders: [
{ test: /\.js$/, loaders: ['babel'], include: path.join(__dirname, 'src') },
{ test: /\.json$/, loader: 'json' },
{ test: /\.scss$/, loader: 'style-loader!css-loader!sass-loader?sourceMap', include: path.join(__dirname, 'src/scss')},
{ test: /\.css$/, loader: 'style-loader!css-loader?sourceMap', include: path.join(__dirname, 'src/scss')},
]
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin()
]
};