当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
225 Star 796 Fork 183

小弟调调/iNotify
暂停

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.kktrc.js 1.12 KB
一键复制 编辑 原始数据 按行查看 历史
小弟调调 提交于 2022-03-24 21:32 +08:00 . chore: update kkt config.
import path from 'path';
import lessModules from '@kkt/less-modules';
import rawModules from '@kkt/raw-modules';
import scopePluginOptions from '@kkt/scope-plugin-options';
export default (conf, evn, options) => {
conf = lessModules(conf, evn, options);
conf = rawModules(conf, evn, options);
conf = scopePluginOptions(conf, evn, {
allowedFiles: [
path.resolve(process.cwd(), 'README.md')
]
});
if (evn === 'production') {
conf.optimization = {
...conf.optimization,
splitChunks: {
cacheGroups: {
reactvendor: {
test: /[\\/]node_modules[\\/](react|react-dom)[\\/]/,
name: 'react-vendor',
chunks: 'all',
},
refractor: {
test: /[\\/]node_modules[\\/](refractor)[\\/]/,
name: 'refractor-vendor',
chunks: 'all',
},
codemirror: {
test: /[\\/]node_modules[\\/](@codemirror)[\\/]/,
name: 'codemirror-vendor',
chunks: 'all',
},
},
},
};
conf.output = { ...conf.output, publicPath: './' };
}
return conf;
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/jaywcjlove/iNotify.git
git@gitee.com:jaywcjlove/iNotify.git
jaywcjlove
iNotify
iNotify
master

搜索帮助