Add production
This commit is contained in:
parent
135907384e
commit
e082444a7c
2
jirs-client/.gitignore
vendored
2
jirs-client/.gitignore
vendored
@ -1,3 +1,3 @@
|
|||||||
pkg
|
pkg
|
||||||
node_modules
|
node_modules
|
||||||
|
dist
|
||||||
|
@ -10,7 +10,7 @@ module.exports = {
|
|||||||
entry: path.resolve(__dirname, 'js', 'index.js'),
|
entry: path.resolve(__dirname, 'js', 'index.js'),
|
||||||
output: {
|
output: {
|
||||||
filename: '[name].js',
|
filename: '[name].js',
|
||||||
path: path.resolve(__dirname, 'dev'),
|
path: path.resolve(__dirname, process.env.NODE_ENV === 'production' ? 'dist' : 'dev'),
|
||||||
publicPath: '/',
|
publicPath: '/',
|
||||||
},
|
},
|
||||||
devtool: 'source-map',
|
devtool: 'source-map',
|
||||||
|
Loading…
Reference in New Issue
Block a user