-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack.config.js
More file actions
41 lines (34 loc) · 1.09 KB
/
Copy pathwebpack.config.js
File metadata and controls
41 lines (34 loc) · 1.09 KB
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
33
34
35
36
37
38
39
40
41
var path = require('path');
var webpack = require('webpack');
module.exports = {
devtool: 'eval',
context: __dirname,
entry: { 'application': [
'webpack-hot-middleware/client',
'./client'
]},
output: {
filename: 'bundle.js',
chunkFilename: 'bundle.js',
path: __dirname + '/public',
publicPath: '/'
},
plugins: [
new webpack.optimize.OccurenceOrderPlugin(),
new webpack.HotModuleReplacementPlugin(),
new webpack.NoErrorsPlugin()
],
module: {
loaders: [
{ test: /\.js|.jsx$/, loader: 'babel', exclude: /node_modules/ },
{ test: /\.css$/, loader: 'style-loader!css-loader' },
{ test: /\.scss$/, loader: 'style-loader!css-loader!sass-loader' }
/*{ test: /\.css$/, loader: 'style-loader!css-loader?modules' },
{ test: /\.scss$/, loader: 'style-loader!css-loader?modules!sass-loader' }*/
]
},
resolve: {
extensions: ['', '.js', '.jsx', '.css', '.scss'],
modulesDirectories: ['client', 'node_modules']
}
};