1 Star 1 Fork 0

uiw / react-clock

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.kktrc.ts 805 Bytes
一键复制 编辑 原始数据 按行查看 历史
import path from 'path';
import webpack, { Configuration } from 'webpack';
import { LoaderConfOptions } from 'kkt';
import lessModules from '@kkt/less-modules';
import rawModules from '@kkt/raw-modules';
import scopePluginOptions from '@kkt/scope-plugin-options';
import pkg from './package.json';
export default (conf: Configuration, env: string, options: LoaderConfOptions) => {
conf = rawModules(conf, env, { ...options });
conf = lessModules(conf, env, options);
conf = scopePluginOptions(conf, env, {
...options,
allowedFiles: [
path.resolve(process.cwd(), 'README.md')
]
});
// Get the project version.
conf.plugins!.push(new webpack.DefinePlugin({
VERSION: JSON.stringify(pkg.version),
}));
conf.output = { ...conf.output, publicPath: './' }
return conf;
}
1
https://gitee.com/uiw/react-clock.git
git@gitee.com:uiw/react-clock.git
uiw
react-clock
react-clock
master

搜索帮助