|
5 | 5 | "author": "Mark <mark@remarkablemark.org>",
|
6 | 6 | "main": "index.js",
|
7 | 7 | "scripts": {
|
8 |
| - "build:unmin": "NODE_ENV=development webpack index.js dist/html-react-parser.js", |
9 |
| - "build:min": "NODE_ENV=production webpack -p index.js dist/html-react-parser.min.js", |
| 8 | + "build": "npm run clean && npm run build:min && npm run build:unmin", |
| 9 | + "build:min": "NODE_ENV=production webpack -o dist/html-react-parser.min.js", |
| 10 | + "build:unmin": "NODE_ENV=development webpack -o dist/html-react-parser.js", |
10 | 11 | "clean": "rm -rf dist",
|
11 | 12 | "commitmsg": "commitlint -e $GIT_PARAMS",
|
12 | 13 | "cover": "istanbul cover _mocha -- -R spec \"test/**/*\"",
|
13 | 14 | "coveralls": "cat coverage/lcov.info | coveralls",
|
14 | 15 | "lint": "eslint --ignore-path .gitignore .",
|
15 | 16 | "lint:fix": "npm run lint -- --fix",
|
16 | 17 | "precommit": "lint-staged",
|
17 |
| - "prepublishOnly": "npm run clean && npm run build:unmin && npm run build:min", |
| 18 | + "prepublishOnly": "npm run build", |
18 | 19 | "release": "standard-version --no-verify",
|
19 | 20 | "test": "mocha",
|
20 |
| - "test:benchmark": "node ./test/benchmark.js" |
| 21 | + "test:benchmark": "node test/benchmark.js" |
21 | 22 | },
|
22 | 23 | "repository": {
|
23 | 24 | "type": "git",
|
|
53 | 54 | "react": "^16",
|
54 | 55 | "react-dom": "^16",
|
55 | 56 | "standard-version": "^4.3.0",
|
56 |
| - "webpack": "^3.11.0" |
| 57 | + "webpack": "^4.19.0", |
| 58 | + "webpack-cli": "^3.1.0" |
57 | 59 | },
|
58 | 60 | "peerDependencies": {
|
59 | 61 | "react": "^0.14 || ^15 || ^16"
|
|
0 commit comments