Commit Graph

4 Commits

Author SHA1 Message Date
Nick ff62895c99 feat: add --filename option to specify the output (lib) file name (#3703) 2019-04-09 20:40:19 +08:00
houfeng 9029ad1955 fix: do not add link tag to demo page when css extract is false (#3351) 2019-01-28 18:50:53 +08:00
Haoqun Jiang 3899b52d39 fix(build): add charset to demo pages, fix #1765 (#1793) 2018-07-09 13:45:26 +02:00
Evan You 1dc47eb955 feat(build): support named exports when building --target lib with js/ts entry
close #1436

BREAKING CHANGE: When building a js/ts entry file with --target lib, the
library now exposes a Module with both default and named exports. This means
in the UMD build, the default export now needs to be accessed as
`window.yourLib.default`, and in the CommonJS build as
`const yourLib = require('yourLib').default`. If you don't have named exports
and want to retain the previous behavior, you can configure webpack to use
`output.libraryExport: 'default'` in `vue.config.js`.
2018-06-05 11:58:17 -04:00