cherrypulp /
js-mixin
| 1 | const webpack = require('webpack'); |
||
| 2 | |||
| 3 | module.exports = { |
||
| 4 | devServer: { |
||
| 5 | contentBase: './src', |
||
| 6 | stats: { |
||
| 7 | modules: false, |
||
| 8 | cached: false, |
||
| 9 | colors: true, |
||
| 10 | chunk: false, |
||
| 11 | }, |
||
| 12 | }, |
||
| 13 | devtool: 'source-map', |
||
| 14 | entry: './src/types.js', |
||
| 15 | module: { |
||
| 16 | rules: [ |
||
| 17 | { |
||
| 18 | enforce: 'pre', |
||
| 19 | test: /\.(js)$/, |
||
| 20 | loader: 'eslint-loader', |
||
| 21 | exclude: /node_modules/, |
||
| 22 | }, |
||
| 23 | { |
||
| 24 | test: /\.(js)$/, |
||
| 25 | exclude: /node_modules/, |
||
| 26 | use: ['babel-loader'], |
||
| 27 | }, |
||
| 28 | ], |
||
| 29 | }, |
||
| 30 | output: { |
||
| 31 | path: __dirname + '/dist', |
||
|
0 ignored issues
–
show
Compatibility
introduced
by
Loading history...
|
|||
| 32 | filename: 'types.js', |
||
| 33 | }, |
||
| 34 | plugins: [ |
||
| 35 | new webpack.optimize.OccurrenceOrderPlugin(true), |
||
| 36 | ], |
||
| 37 | resolve: { |
||
| 38 | extensions: ['*', '.js'], |
||
| 39 | }, |
||
| 40 | stats: { |
||
| 41 | colors: true, |
||
| 42 | }, |
||
| 43 | target: 'web', |
||
| 44 | }; |
||
| 45 |