Skip to content

Commit

Permalink
- Add back dist folder clear for watch, minimal performance difference
Browse files Browse the repository at this point in the history
  • Loading branch information
rleeson committed Mar 25, 2024
1 parent 607f679 commit c0ec3eb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 76 deletions.
4 changes: 2 additions & 2 deletions bin/kanopi-pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ const kanopiPack = require('../index');
const utility = require('util');
const {
commands: { standard: program },
configuration: { development, production, watch },
configuration: { development, production },
environment: { standard: { watchOptions } },
runners: { runDevServer, runWebpack, watchWebpack }
} = kanopiPack;

const PACKAGE_MODES = {
'development': { configuration: development, name: 'Development', runner: () => runDevServer(development) },
'production': { configuration: production, name: 'Production', runner: () => runWebpack(production) },
'watch': { configuration: watch, name: 'Watch', runner: () => watchWebpack(watch, watchOptions) }
'watch': { configuration: production, name: 'Watch', runner: () => watchWebpack(production, watchOptions) }
};

program
Expand Down
39 changes: 0 additions & 39 deletions configuration/watch.js

This file was deleted.

4 changes: 2 additions & 2 deletions documentation/extending.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ When`@kanopi/pack` is referenced in another package (i.e. `require('@kanopi/pack
"common": 'Common profile and plugins for all build profiles',
"development": 'Development server profile and plugins',
"production": 'Production build profile and plugins',
"watch": 'Production-like build profile and plugins',
"watch": 'Production build profile and plugins',
},
"components": {
"loaders": {
Expand All @@ -40,6 +40,6 @@ When`@kanopi/pack` is referenced in another package (i.e. `require('@kanopi/pack
"runners": {
"runDevServer": 'Runs Webpack Dev Server based on the provided configuration',
"runWebpack": 'Runs Webpack production build based on the provided configuration'
"watchWebpack": 'Runs Webpack production-like build based on the provided configuration and watchOptions'
"watchWebpack": 'Runs Webpack production build based on the provided configuration and watchOptions'
}
}
33 changes: 0 additions & 33 deletions src/components/plugins/watch.js

This file was deleted.

0 comments on commit c0ec3eb

Please sign in to comment.