12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- const path = require('path');
- const frameSrc = path.resolve(__dirname, '../admin-frame');
- module.exports = {
- // baseUrl: './',
- publicPath: './', //process.env.VUE_APP_ROOT_URL + 'cms'
- // pages: {
- // index: 'src/main.js',
- // },
- // transpileDependencies: ['naf-core'],
- configureWebpack: {
- externals: {
- 'element-ui': 'Element',
- vue: 'Vue',
- },
- resolve: {
- alias: {
- '@frame': frameSrc,
- '@naf': path.join(frameSrc, '/naf'),
- '@lib': path.join(frameSrc, '/lib'),
- },
- },
- },
- devServer: {
- port: 3004,
- disableHostCheck: true,
- before(app) {
- app.use((req, res, next) => {
- // eslint-disable-next-line no-console
- console.log(`[${req.method}]`, req.path);
- next();
- });
- },
- proxy: {
- '/platform/api': {
- // target: 'http://smart.localhost:8000',
- target: 'http://smart.cc-lotus.info',
- },
- '/files': {
- target: 'http://smart.cc-lotus.info',
- },
- '/ddapi': {
- target: 'http://smart.cc-lotus.info',
- // target: 'http://smart.localhost:8008',
- // pathRewrite: { '^/ddapi': '' },
- },
- '/adminapi': {
- target: 'http://10.16.5.15:8105', //http://10.16.5.15:8105// http://smart.cc-lotus.info
- // pathRewrite: { '^/ddapi': '' },
- },
- },
- },
- };
|