mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-05-12 19:58:54 +08:00
Use npm script hooks to avoid && in deploy script (#1324)
This commit is contained in:
committed by
Ville Immonen
parent
a90e2b2eea
commit
4d7b7544e7
3
packages/react-scripts/scripts/build.js
vendored
3
packages/react-scripts/scripts/build.js
vendored
@@ -181,7 +181,8 @@ function build(previousSizeMap) {
|
||||
console.log(' ' + chalk.dim('// ...'));
|
||||
console.log(' ' + chalk.yellow('"scripts"') + ': {');
|
||||
console.log(' ' + chalk.dim('// ...'));
|
||||
console.log(' ' + chalk.yellow('"deploy"') + ': ' + chalk.yellow('"npm run build&&gh-pages -d build"'));
|
||||
console.log(' ' + chalk.yellow('"predeploy"') + ': ' + chalk.yellow('"npm run build",'));
|
||||
console.log(' ' + chalk.yellow('"deploy"') + ': ' + chalk.yellow('"gh-pages -d build"'));
|
||||
console.log(' }');
|
||||
console.log();
|
||||
console.log('Then run:');
|
||||
|
||||
Reference in New Issue
Block a user