2
0
mirror of https://github.com/tenrok/vue-cron-editor-bootstrap.git synced 2026-06-14 18:52:24 +03:00
Files
vue-cron-editor-bootstrap/vue.config.js
T
2023-10-24 17:33:53 +03:00

20 lines
544 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({
'@tenrok/bootstrap-vue': '@tenrok/bootstrap-vue',
})
// config.merge({ devtool: 'source-map' })
}
},
}