Skip to content

Commit 03c68df

Browse files
committed
Attempt a more windows friendly build by using npm and webpack instead of shell commands
1 parent 906455d commit 03c68df

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
"fetch:supporters": "node src/utilities/fetch-supporters.js",
3535
"fetch:starter-kits": "node src/utilities/fetch-starter-kits.js",
3636
"prebuild": "npm run clean",
37-
"build": "npm run fetch && npm run content && NODE_ENV=production webpack --config webpack.prod.js && npm run sitemap && echo webpack.js.org > dist/CNAME",
37+
"build": "run-p fetch content && NODE_ENV=production webpack --config webpack.prod.js",
38+
"postbuild": "npm run sitemap",
3839
"test": "npm run lint",
3940
"lint": "run-s lint:*",
4041
"lint:js": "eslint src --ext .js,.jsx,.md --cache true --cache-location .cache/.eslintcache",

src/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
webpack.js.org

webpack.prod.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,13 @@ const prod = {
3030
new webpack.DefinePlugin({
3131
'process.env.NODE_ENV': JSON.stringify('production')
3232
}),
33-
new CopyWebpackPlugin([{
34-
from: './assets/icon-square-small-slack.png',
35-
to: './assets/'
36-
}])
33+
new CopyWebpackPlugin([
34+
{
35+
from: './assets/icon-square-small-slack.png',
36+
to: './assets/'
37+
},
38+
'CNAME'
39+
])
3740
]
3841
};
3942

0 commit comments

Comments
 (0)