wp-blank-scripts 4.0.0-dev-8 → 4.0.0-dev-10
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/README.md +1 -1
- package/package.json +1 -1
- package/utils/getSqlPath.js +7 -1
- package/webpack.base.config.js +8 -8
- package/webpack.react.config.js +1 -1
package/README.md
CHANGED
package/package.json
CHANGED
package/utils/getSqlPath.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
1
2
|
const { isWindows } = require('./checkPlatform');
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
const mamp6SqlPath = '/Applications/MAMP/Library/bin/mysql';
|
|
5
|
+
const sqlPath = '/Applications/MAMP/Library/bin/mysql80/bin'; //MAMP7 moved mysql path
|
|
6
|
+
|
|
7
|
+
const mysqlPath = fs.existsSync(mamp6SqlPath) ? mamp6SqlPath : sqlPath;
|
|
8
|
+
|
|
9
|
+
module.exports.sqlPath = isWindows ? 'C:/MAMP/bin/mysql/bin' : mysqlPath;
|
package/webpack.base.config.js
CHANGED
|
@@ -47,18 +47,18 @@ function makeBaseConfig(options) {
|
|
|
47
47
|
},
|
|
48
48
|
{ from: path.join(sourceDir, 'style.css'), to: themePath },
|
|
49
49
|
{
|
|
50
|
-
from: path.join(sourceDir, 'assets', '
|
|
51
|
-
to: path.join(themePath, 'assets', '
|
|
50
|
+
from: path.join(sourceDir, 'assets', 'images'),
|
|
51
|
+
to: path.join(themePath, 'assets', 'images'),
|
|
52
52
|
globOptions: { ignore: ['.DS_Store'] },
|
|
53
53
|
},
|
|
54
54
|
...(fs.existsSync(fontsDir)
|
|
55
55
|
? [
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
{
|
|
57
|
+
from: fontsDir,
|
|
58
|
+
to: path.join(themePath, 'assets', 'fonts'),
|
|
59
|
+
globOptions: { ignore: ['.DS_Store'] },
|
|
60
|
+
},
|
|
61
|
+
]
|
|
62
62
|
: []),
|
|
63
63
|
{
|
|
64
64
|
from: path.join(sourceDir, 'templates'),
|
package/webpack.react.config.js
CHANGED
|
@@ -147,7 +147,7 @@ function makeReactWebpackConfig(options) {
|
|
|
147
147
|
test: /\.(gif|png|svg|jpe?g)$/i,
|
|
148
148
|
type: 'asset/resource',
|
|
149
149
|
generator: {
|
|
150
|
-
filename: `${path.join(themeDir, 'assets', '
|
|
150
|
+
filename: `${path.join(themeDir, 'assets', 'images')}/[contenthash][ext][query]`,
|
|
151
151
|
},
|
|
152
152
|
},
|
|
153
153
|
{
|