feat:carco正常启动
This commit is contained in:
parent
56418aeea4
commit
3b7d8f14c3
|
@ -1,5 +1,4 @@
|
|||
const CracoLessPlugin = require('craco-less');
|
||||
const HtmlWebpackPlugin=require('html-webpack-plugin')
|
||||
const path = require('path');
|
||||
module.exports = {
|
||||
plugins: [
|
||||
|
@ -15,7 +14,14 @@ module.exports = {
|
|||
},
|
||||
},
|
||||
],
|
||||
alias: {
|
||||
// 将@/*映射为src目录
|
||||
'@': path.resolve(__dirname, 'src/'),
|
||||
},
|
||||
webpack: {
|
||||
alias:{
|
||||
'@': path.resolve(__dirname, 'src/')
|
||||
},
|
||||
configure: (webpackConfig, { env, paths }) => {
|
||||
// 修改output.publicPath为'./'
|
||||
// webpackConfig.output.publicPath = './';
|
||||
|
|
Loading…
Reference in New Issue