We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c4376ff + 1a6bc6e commit de19dacCopy full SHA for de19dac
lib/module.js
@@ -50,13 +50,11 @@ module.exports = function (moduleOptions) {
50
51
// extend webpack config to output umd library
52
this.extendBuild((config, { isDev }) => {
53
- if (!isDev) {
54
- config.output = Object.assign(config.output, {
55
- library: `${name}-[name]`,
56
- libraryTarget: 'umd',
57
- jsonpFunction: `webpackJsonp_${name}`
58
- })
59
- }
+ config.output = Object.assign(config.output, {
+ library: `${name}-[name]`,
+ libraryTarget: 'umd',
+ jsonpFunction: `webpackJsonp_${name}`
+ })
60
})
61
62
this.addTemplate({
0 commit comments