diff --git a/package.json b/package.json index 7c9bf3b1..7d88d661 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,8 @@ "scripts": { "start": "webpack-dev-server --config webpack.dev.js --host 0.0.0.0 --open --useLocalIp", "build": "webpack --config webpack.prod.js", - "dist": "git worktree add dist gh-pages", - "deploy": "cd dist && git add --all && git commit -m \"new version\" && git push origin gh-pages" + "setupDist": "git worktree add dist gh-pages", + "deploy": "cd dist && git add --all && git reset -- stats && git commit -m \"new version\" && git push origin gh-pages" }, "author": "Teoxoy", "license": "MIT", diff --git a/webpack.common.js b/webpack.common.js index cb3fd4b7..81ce557a 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -74,7 +74,7 @@ module.exports = { new CopyWebpackPlugin([ { from: 'src/spritesheets', to: 'spritesheets'/*'factorio-data/bundles/[name].[hash].[ext]'*/ } ]), - new CleanWebpackPlugin(['dist']), + new CleanWebpackPlugin(['dist/*.*'], { exclude: ['.git'] }), new ForkTsCheckerWebpackPlugin({ tslint: true, watch: ['./src']