-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
executable file
·45 lines (39 loc) · 970 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
33
34
35
36
37
38
39
40
41
42
43
44
45
/**
* Developement webpack config
* ===========================
*/
const Webpack = require('webpack')
// Parts of config
const myWebpackModule = require('./config/webpack.module.js')
const myWebpackResolve = require('./config/webpack.resolve.js')
// PostCSS plugin
const autoprefixer = require('autoprefixer')
const precss = require('precss')
const cssnext = require('cssnext')
const normalize = require('postcss-normalize')
module.exports = {
context: __dirname,
entry: {
app: './app.js'
},
output: {
filename: './[name]/[name]Bundle.js'
},
module: myWebpackModule,
resolve: myWebpackResolve,
eslint: {
configFile: './.eslintrc'
},
postcss: function () {
// List of postcss plugin (require above)
return [
precss,
cssnext,
autoprefixer,
normalize
]
},
devServer: {
stats: 'errors-only'
}
}