vue.config.js 336 B

1234567891011121314151617
  1. const packageName = require('./package.json').name
  2. module.exports = {
  3. devServer: {
  4. port: 3002,
  5. headers: {
  6. 'Access-Control-Allow-Origin': '*'
  7. }
  8. },
  9. configureWebpack: {
  10. output: {
  11. library: `${packageName}-[name]`,
  12. libraryTarget: 'umd',
  13. jsonpFunction: `webpackJsonp_${packageName}`
  14. }
  15. }
  16. }