-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.config.js
35 lines (32 loc) · 892 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
const path = require('path')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const MinifyPlugin = require('babel-minify-webpack-plugin')
const webpack = require('webpack')
const plugins = [new webpack.optimize.ModuleConcatenationPlugin()]
module.exports = function webpackStuff(env) {
// if (env === 'production') plugins.push(new MinifyPlugin())
return {
entry: ['./src/index.js'],
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, './')
},
module: {
rules: [
{
test: /\.js$/,
loader: 'babel-loader',
query: {
presets: ['env'],
plugins: []
}
// include: [
// path.resolve(__dirname, './'),
// path.join('node_modules', 'cypress-hyperapp-unit-test', 'src')
// ]
}
]
},
plugins
}
}