2
0
mirror of https://github.com/tenrok/vue-cron-editor-bootstrap.git synced 2026-06-08 17:32:24 +03:00
Files
vue-cron-editor-bootstrap/vue.config.js
T
2023-10-25 11:11:57 +03:00

20 lines
499 B
JavaScript

const isProduction = process.env.NODE_ENV === 'production'
const isBuildLib = (process.env.npm_lifecycle_script || '').indexOf('--target lib') > 0
module.exports = {
publicPath: isProduction ? '/vue-cron-editor-bootstrap/' : '',
outputDir: isBuildLib ? 'dist' : 'demo',
css: {
extract: true,
},
productionSourceMap: false,
chainWebpack: config => {
if (isProduction) {
config.externals({
vue: 'vue',
'bootstrap-vue': 'bootstrap-vue',
})
}
},
}