Created
August 14, 2016 08:40
-
-
Save 0xF013/d7366a58f475881ed54353ea92b6d0b0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*eslint-disable */ | |
var path = require('path'); | |
var webpack = require('webpack'); | |
var makeConfig = require('./webpack.config.js'); | |
var CleanWebpackPlugin = require('clean-webpack-plugin'); | |
var plugins = [ | |
new CleanWebpackPlugin(['public'], { | |
root: path.join(__dirname, ''), | |
verbose: true, | |
dry: false | |
}) | |
]; | |
module.exports = Object.assign({}, makeConfig({env: 'production', plugins: plugins}), { | |
devtool: 'hidden', | |
debug: false, | |
entry: [ | |
'babel-polyfill', | |
'./src/index', | |
], | |
output: { | |
path: path.resolve(__dirname, '../public/'), | |
filename: 'index.[hash].js' | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment