Add production

This commit is contained in:
Adrian Wozniak 2020-04-04 00:16:48 +02:00
parent 135907384e
commit e082444a7c
2 changed files with 2 additions and 2 deletions

View File

@ -1,3 +1,3 @@
pkg
node_modules
dist

View File

@ -10,7 +10,7 @@ module.exports = {
entry: path.resolve(__dirname, 'js', 'index.js'),
output: {
filename: '[name].js',
path: path.resolve(__dirname, 'dev'),
path: path.resolve(__dirname, process.env.NODE_ENV === 'production' ? 'dist' : 'dev'),
publicPath: '/',
},
devtool: 'source-map',