123456789101112131415161718192021222324252627282930313233 |
- const path = require('path');
- const frameSrc = path.resolve(__dirname, '../admin-frame');
- const packageName = require('./package.json').name;
- module.exports = {
- publicPath: `/${packageName}/`,
- outputDir: path.join(frameSrc, `../../admin-web/${packageName}/`),
- devServer: {
- port: 3009,
- headers: {
- 'Access-Control-Allow-Origin': '*'
- },
- proxy: {
- '/api/': {
- // target: 'http://192.168.0.45:18090'
- target: 'http://192.168.3.45:18090'
- }
- }
- },
- configureWebpack: {
- output: {
- library: `${packageName}-[name]`,
- libraryTarget: 'umd',
- jsonpFunction: `webpackJsonp_${packageName}`
- },
- resolve: {
- alias: {
- '@components': path.join(frameSrc, '/src/components'),
- '@style': path.join(frameSrc, '/style'),
- '@lib': path.join(frameSrc, '/lib')
- }
- }
- }
- };
|