|
@@ -1,33 +1,30 @@
|
|
|
'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': '*'
|
|
|
- }
|
|
|
- }
|
|
|
+ configureWebpack: {
|
|
|
+ resolve: {
|
|
|
+ alias: {
|
|
|
+ '@': path.resolve('src'),
|
|
|
+ '@api': path.resolve('src/api')
|
|
|
+ }
|
|
|
},
|
|
|
- css: {
|
|
|
- sourceMap: process.env.NODE_ENV === 'development',
|
|
|
- requireModuleExtension: true,
|
|
|
- loaderOptions: {
|
|
|
- less: {
|
|
|
- lessOptions: {
|
|
|
+ devServer: {
|
|
|
+ headers: {
|
|
|
+ 'Access-Control-Allow-Origin': '*'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ css: {
|
|
|
+ sourceMap: process.env.NODE_ENV === 'development',
|
|
|
+ requireModuleExtension: true,
|
|
|
+ loaderOptions: {
|
|
|
+ less: {
|
|
|
+ lessOptions: {
|
|
|
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
- },
|
|
|
- chainWebpack: config => {
|
|
|
- console.log(config);
|
|
|
}
|
|
|
+ }
|
|
|
}
|