Skip to content

Commit

Permalink
update CLI for webpack 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Sun committed Nov 10, 2020
1 parent e04c6b0 commit 40054f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apprun-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ function init() {
const package_info = require(package_json);
if (!package_info.scripts) package_info["scripts"] = {}
if (!package_info.scripts['start']) {
package_info["scripts"]["start"] = 'webpack-dev-server --mode development';
package_info["scripts"]["start"] = 'webpack serve --mode development';
}
if (!package_info.scripts['build']) {
package_info["scripts"]["build"] = 'webpack -p --mode production';
package_info["scripts"]["build"] = 'webpack --mode production';
}
fs.writeFileSync(
package_json,
Expand Down Expand Up @@ -131,7 +131,7 @@ function spa() {

program
.name('apprun')
.version('2.23.5')
.version('2.25')
.option('-i, --init', 'Initialize AppRun Project')
.option('-c, --component <file>', 'Generate AppRun component')
.option('-g, --git', 'Initialize git repository')
Expand Down

0 comments on commit 40054f7

Please sign in to comment.