@sumotto/configs 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sumotto/configs",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "Configs for my work",
5
5
  "scripts": {
6
6
  "release": "np --yolo"
@@ -32,11 +32,12 @@ const defaultConfig = new Config( defaultConfigWP, 'default', port )
32
32
  cleanOnceBeforeBuildPatterns: [
33
33
  '**/*',
34
34
  // Each link in the path has been added, because if this is not done,
35
- // the scripts will be separated since it does not fall under the condition !blocks/**/scripts/module*,
35
+ // the scripts will be separated since it does not fall under the condition !blocks/*/scripts/module.*,
36
36
  // and accordingly, the module files will be included with it...
37
- '!blocks/**/',
38
- '!blocks/**/scripts',
39
- '!blocks/**/scripts/module*',
37
+ '!blocks',
38
+ '!blocks/*',
39
+ '!blocks/*/scripts',
40
+ '!blocks/*/scripts/module.*',
40
41
  ],
41
42
  cleanStaleWebpackAssets: false,
42
43
  } ),
@@ -140,7 +140,10 @@ const modulesConfig = new Config( modulesConfigWP, 'modules' )
140
140
  .resetEntries()
141
141
  .addEntries( 'src/scripts/modules/*.{j,t}s' );
142
142
 
143
- const patternsConfig = new Config( { entry: {} }, 'patterns' )
143
+ const patternsConfig = new Config(
144
+ { entry: {}, mode: 'production' },
145
+ 'patterns'
146
+ )
144
147
  .addPlugin(
145
148
  new CopyWebpackPlugin( {
146
149
  patterns: [