forked from talkhabi/vue3-persian-datetime-picker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
vue.config.js
33 lines (28 loc) · 795 Bytes
/
vue.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
const webpack = require('webpack')
module.exports = {
publicPath: process.env.VUE_APP_PUBLIC_PATH,
lintOnSave: false,
filenameHashing: true,
productionSourceMap: false,
configureWebpack: {
plugins: [new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/)]
},
css: {
sourceMap: process.env.NODE_ENV !== 'production',
extract: false
}
}
if (process.env.npm_lifecycle_event === 'export-common') {
module.exports.configureWebpack.externals = {
moment: 'moment',
'moment-jalaali': 'moment-jalaali'
}
module.exports.configureWebpack.devtool = ''
}
if (process.env.npm_lifecycle_event === 'export-umd') {
module.exports.configureWebpack.externals = {
moment: 'moment',
'moment-jalaali': 'moment'
}
module.exports.configureWebpack.devtool = ''
}