1 Star 5 Fork 3

吴昊/v-schema-form-next

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
vue.config.js 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
吴昊 提交于 2024-08-30 21:33 . fix: 清理
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
const analyze = false;
module.exports = {
css: {
loaderOptions: {
less: {
lessOptions: {
javascriptEnabled: true
}
}
}
},
configureWebpack: (config) => {
// config.externals = {
// 'vue': 'Vue',
// 'lodash': '_',
// dayjs: 'dayjs',
// 'ant-design-vue': 'antd',
// 'antd-mobile-vue-next': 'antdm',
// '@ant-design/icons-vue': 'anticons'
// };
config.module.rules.push({
test: /\.md$/,
use: [
{
loader: 'html-loader'
},
{
loader: 'markdown-loader',
options: {}
}
]
});
config.module.rules.push({
test: /\.txt$/,
use: [
{ loader: 'raw-loader' },
{ loader: 'decoded-text-loader' }
]
});
if (analyze) {
config.plugins.push(new BundleAnalyzerPlugin({
generateStatsFile: true,
statsOptions: {
source: true
}
}));
}
}
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wuhao000/v-schema-form-next.git
git@gitee.com:wuhao000/v-schema-form-next.git
wuhao000
v-schema-form-next
v-schema-form-next
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385