Skip to content

Commit ea5d1a1

Browse files
committed
Issue 31
1 parent ea00d4f commit ea5d1a1

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

packages/react-scripts/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devloco/react-scripts-wptheme",
3-
"version": "3.2.0-wp.1",
3+
"version": "3.2.0-wp.2",
44
"description": "Configuration and scripts for Create React WP Theme.",
55
"repository": "devloco/create-react-wptheme",
66
"author": "devloco",
@@ -94,7 +94,7 @@
9494
"webpack-dev-server": "3.2.1",
9595
"webpack-manifest-plugin": "2.1.1",
9696
"workbox-webpack-plugin": "4.3.1",
97-
"@devloco/react-scripts-wptheme-utils": "^3.2.0-wp.1",
97+
"@devloco/react-scripts-wptheme-utils": "^3.2.0-wp.2",
9898
"@devloco/react-scripts-wptheme-error-overlay": "^6.0.3-wp.1"
9999
},
100100
"devDependencies": {

packages/react-scripts/scripts/wpbuild.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ if (!checkRequiredFiles([paths.appHtml, paths.appIndexJs])) {
9090
}
9191

9292
// Generate configuration
93-
const config = configFactory('production');
93+
const config = configFactory(process.env.NODE_ENV);
9494

9595
// We require that you explicitly set browsers and do not fall back to
9696
// browserslist defaults.

packages/react-scripts/scripts/wpstart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ function startWatch() {
290290

291291
injectWpThemeClient(_wpThemeServer);
292292
copyToThemeFolder(paths);
293-
writeDoNotEditFile();
293+
writeDoNotEditFile(paths);
294294

295295
if (_wpThemeServer) {
296296
_wpThemeServer.update(stats);

packages/react-scripts/template-typescript/public/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
}
2929
?>
3030

31-
Please restart the Nodejs watcher now...
31+
Now, back in your command prompt, rerun the "start" script again...
3232

3333
<script>
3434
setTimeout(function() {

packages/react-scripts/template/public/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
}
2929
?>
3030

31-
Please restart the Nodejs watcher now...
31+
Now, back in your command prompt, rerun the "start" script again...
3232

3333
<script>
3434
setTimeout(function() {

0 commit comments

Comments
 (0)