diff --git a/.gitignore b/.gitignore index e15e75a..85f9dce 100644 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,6 @@ yarn-error.log* *.sw* node_modules + +# Build files +Extensions/combined/bundled-content-script.js \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1a41707..e9248df 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -25,10 +25,12 @@ npm install 2. Run the following command to create `bundled-content-script.js` which is used in `manifest.json` ``` -npm run bundle -``` +npm start // to create the build file(s) and start a file watcher that hot-reloads on save -This will also start a watcher that re-bundles automatically once you save a file inside the source. +// or + +npm run build // to create the build file(s) once +``` Congratulations, You are now ready to develop! diff --git a/package.json b/package.json index 6c0cb42..b5646da 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,9 @@ "description": "Chrome extension to return youtube dislikes", "main": "ryd.content-script.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", - "bundle": "node_modules/.bin/webpack \"./Extensions/combined/ryd.content-script.js\" -o \"./Extensions/combined\"" + "start": "node_modules/.bin/webpack \"./Extensions/combined/ryd.content-script.js\" -o \"./Extensions/combined\" --watch", + "build": "node_modules/.bin/webpack \"./Extensions/combined/ryd.content-script.js\" -o \"./Extensions/combined\"", + "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { "type": "git", diff --git a/webpack.config.js b/webpack.config.js index 002b243..9452fa7 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -10,5 +10,4 @@ module.exports = { ramda: "R", }, module: {}, - watch: true };