Skip to content

Commit aeaff2d

Browse files
committed
chore: update scripts.
1 parent 2767829 commit aeaff2d

File tree

5 files changed

+12731
-7924
lines changed

5 files changed

+12731
-7924
lines changed

.kktrc.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,24 @@ import path from 'path';
22
import webpack from 'webpack';
33
import lessModules from '@kkt/less-modules';
44
import rawModules from '@kkt/raw-modules';
5+
import { disableScopePlugin } from '@kkt/scope-plugin-options';
56
import scopePluginOptions from '@kkt/scope-plugin-options';
67
import pkg from './package.json';
78

89
export default (conf, env, options) => {
910
conf = lessModules(conf, env, options);
1011
conf = rawModules(conf, env, options);
12+
conf = disableScopePlugin(conf);
1113
conf = scopePluginOptions(conf, env, {
1214
...options,
13-
allowedFiles: [path.resolve(process.cwd(), 'README.md')],
15+
allowedFiles: [
16+
path.resolve(process.cwd(), 'README.md'),
17+
path.resolve(process.cwd(), 'src')
18+
],
1419
});
20+
conf.ignoreWarnings = [
21+
{ module: /node_modules[\\/]parse5[\\/]/ }
22+
];
1523
// Get the project version.
1624
conf.plugins.push(
1725
new webpack.DefinePlugin({

0 commit comments

Comments
 (0)