1234567891011121314151617 |
- const packageName = require('./package.json').name
- module.exports = {
- devServer: {
- port: 3002,
- headers: {
- 'Access-Control-Allow-Origin': '*'
- }
- },
- configureWebpack: {
- output: {
- library: `${packageName}-[name]`,
- libraryTarget: 'umd',
- jsonpFunction: `webpackJsonp_${packageName}`
- }
- }
- }
|