Skip to content
This repository has been archived by the owner on May 20, 2020. It is now read-only.

Commit

Permalink
add dev/prod guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
GaurangTandon committed Jun 27, 2019
1 parent a5ac2d1 commit ea7ac3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ If you're using VS Code refer [here](https://stackoverflow.com/a/56554313) to se
4. Make sure that the update fixes all the bugs listed for its milestone number.
5. Check for an [update](http://quilljs.com/docs/download/) to quill version, and replace the `min.js` and `snow.css` files in our codebase. Verify that this does not break any existing RTE logic.
6. Run UI tests (Jest+Puppeteer).
7. Update MODE to production in webpack config js before final build, and do build once.

## **After updating the extension**

Expand Down
4 changes: 3 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ module.exports = {
// development mode ensures terser (es6 minifier) is not run
// see https://webpack.js.org/configuration/mode
module: moduleObject,
mode: MODE,
// this must always be development, since source files
// should not be minified, according Webstore policy
mode: "development",
entry: {
background: `${__dirname}/js/background.js`,
detector: `${__dirname}/js/detector.js`,
Expand Down

0 comments on commit ea7ac3e

Please sign in to comment.