Skip to content
This repository has been archived by the owner on Dec 13, 2021. It is now read-only.

Commit

Permalink
lineup just external in production build
Browse files Browse the repository at this point in the history
  • Loading branch information
sgratzl committed Oct 15, 2018
1 parent c303a27 commit d6fc93c
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ module.exports = {
css: {
extract: false
},
configureWebpack: {
output: {
library: 'VueLineUp'
},
externals: {
lineupjs: {
amd: 'lineupjs',
root: 'LineUpJS',
commonjs: 'lineupjs',
commonjs2: 'lineupjs'
}
},
configureWebpack: (config) => {
config.output.library = 'VueLineUp';
if (process.env.NODE_ENV === 'production') {
config.externals = Object.assign(config.externals ||{}, {
lineupjs: {
amd: 'lineupjs',
root: 'LineUpJS',
commonjs: 'lineupjs',
commonjs2: 'lineupjs'
}
})
}
}
}

0 comments on commit d6fc93c

Please sign in to comment.