Skip to content

Instantly share code, notes, and snippets.

@0xF013
Created August 14, 2016 08:40
Show Gist options
  • Save 0xF013/d7366a58f475881ed54353ea92b6d0b0 to your computer and use it in GitHub Desktop.
Save 0xF013/d7366a58f475881ed54353ea92b6d0b0 to your computer and use it in GitHub Desktop.
/*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