!161 testability

Merge pull request !161 from kage1/cherry-pick-1646221494
This commit is contained in:
openharmony_ci
2022-03-02 13:33:20 +00:00
committed by Gitee
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -120,6 +120,7 @@ function setConfigs(env) {
process.env.buildPath = env.aceModuleBuild || process.env.aceModuleBuild || path.resolve(process.env.projectPath, 'build');
process.env.cachePath = env.cachePath || process.env.cachePath || path.resolve(__dirname, 'node_modules/.cache');
process.env.aceManifestPath = process.env.aceManifestPath || path.resolve(process.env.projectPath, 'manifest.json');
process.env.watchCSSFiles = process.env.watchCSSFiles || path.resolve(process.env.buildPath, 'preview_css.json');
process.env.abilityType = 'page';
const manifest = readManifest(process.env.aceManifestPath)
process.env.PLATFORM_VERSION = PLATFORM.VERSION6;
@@ -140,7 +141,8 @@ module.exports = (env) => {
process.env.abilityType, process.env.aceManifestPath)
webpackConfig.output.path = path.resolve(__dirname, process.env.buildPath)
webpackConfig.plugins = [
new ResourcePlugin(process.env.projectPath, process.env.buildPath, process.env.aceManifestPath),
new ResourcePlugin(process.env.projectPath, process.env.buildPath,
process.env.aceManifestPath, process.env.watchCSSFiles),
new ResultStates({
build: process.env.buildPath
}),
+1 -1
View File
@@ -146,7 +146,7 @@ let config = {
optimization: {
splitChunks: {
chunks(chunk) {
return !/^\.\/workers\//.test(chunk.name);
return !/^\.\/workers\//.test(chunk.name) && !/^\.\/TestAbility/.test(chunk.name);
},
minSize: 0,
cacheGroups: {