Skip to content

Commit

Permalink
chore: update scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Dec 8, 2023
1 parent 2767829 commit aeaff2d
Show file tree
Hide file tree
Showing 5 changed files with 12,731 additions and 7,924 deletions.
10 changes: 9 additions & 1 deletion .kktrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,24 @@ import path from 'path';
import webpack from 'webpack';
import lessModules from '@kkt/less-modules';
import rawModules from '@kkt/raw-modules';
import { disableScopePlugin } from '@kkt/scope-plugin-options';
import scopePluginOptions from '@kkt/scope-plugin-options';
import pkg from './package.json';

export default (conf, env, options) => {
conf = lessModules(conf, env, options);
conf = rawModules(conf, env, options);
conf = disableScopePlugin(conf);
conf = scopePluginOptions(conf, env, {
...options,
allowedFiles: [path.resolve(process.cwd(), 'README.md')],
allowedFiles: [
path.resolve(process.cwd(), 'README.md'),
path.resolve(process.cwd(), 'src')
],
});
conf.ignoreWarnings = [
{ module: /node_modules[\\/]parse5[\\/]/ }
];
// Get the project version.
conf.plugins.push(
new webpack.DefinePlugin({
Expand Down

0 comments on commit aeaff2d

Please sign in to comment.