diff --git a/package.json b/package.json index 31148f6..b5c2f0c 100644 --- a/package.json +++ b/package.json @@ -4,11 +4,11 @@ "description": "building an embeddable js widget with react", "main": "index.js", "scripts": { - "build": "webpack-cli", + "build": "webpack-cli --mode production", "start": "webpack-serve --config ./webpack.config.js --mode development --open", "test": "jest", "test-update-snapshots": "jest --updateSnapshot", - "deploy": "webpack-cli && cp ./public/* ./dist/. && gh-pages -d dist" + "deploy": "npm run build && cp ./public/* ./dist/. && gh-pages -d dist" }, "babel": { "presets": [ diff --git a/public/index.html b/public/index.html index 69dfa14..dee352c 100644 --- a/public/index.html +++ b/public/index.html @@ -8,7 +8,14 @@