123456789101112131415161718192021222324252627282930313233 |
- const path = require('path');
- const frameSrc = path.resolve(__dirname, '../admin-frame');
- module.exports = {
- // baseUrl: './',
- publicPath: process.env.VUE_APP_ROOT_URL + 'gaf',
- productionSourceMap: false,
- configureWebpack: {
- externals: {
- vue: 'Vue',
- },
- resolve: {
- alias: {
- '@frame': frameSrc,
- '@naf': path.join(frameSrc, '/naf'),
- '@lib': path.join(frameSrc, '/lib'),
- },
- },
- },
- devServer: {
- port: 3001,
- before(app) {
- app.use((req, res, next) => {
- // eslint-disable-next-line no-console
- console.log(`[${req.method}]`, req.path);
- next();
- });
- },
- },
- };
|