3 Star 10 Fork 0

Gitee 极速下载 / iNotifyjs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/jaywcjlove/iNotify
克隆/下载
.kktrc.js 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
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')
]
});
conf.ignoreWarnings = [
{ module: /node_modules[\\/]parse5[\\/]/ }
];
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;
};
JavaScript
1
https://gitee.com/mirrors/iNotifyjs.git
git@gitee.com:mirrors/iNotifyjs.git
mirrors
iNotifyjs
iNotifyjs
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891