mirror of
https://github.com/tenrok/vue-cron-editor-bootstrap.git
synced 2026-06-08 17:32:24 +03:00
20 lines
499 B
JavaScript
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',
|
|
})
|
|
}
|
|
},
|
|
}
|