123456789101112131415161718192021222324252627282930313233 |
- 'use strict'
- const { log } = require('console')
- const path = require('path')
- module.exports = {
- configureWebpack: {
- resolve: {
- alias: {
- '@': path.resolve('src'),
- '@api': path.resolve('src/api')
- }
- },
- devServer: {
- headers: {
- 'Access-Control-Allow-Origin': '*'
- }
- }
- },
- css: {
- sourceMap: process.env.NODE_ENV === 'development',
- requireModuleExtension: true,
- loaderOptions: {
- less: {
- lessOptions: {
- }
- }
- }
- },
- chainWebpack: config => {
- console.log(config);
- }
- }
|