debian/rules
raw| 1 | #!/usr/bin/make -f |
| 2 | # -*- makefile -*- |
| 3 | |
| 4 | # Uncomment this to turn on verbose mode. |
| 5 | #export DH_VERBOSE=1 |
| 6 | |
| 7 | %: |
| 8 | dh $@ |
| 9 | |
| 10 | override_dh_auto_build: |
| 11 | webpack --config debian/webpack.config.js --output-library=URLParse \ |
| 12 | --entry index.js --output-path ./dist --output-filename url-parse.js \ |
| 13 | --mode development |
| 14 | webpack --config debian/webpack.config.js --output-library=URLParse \ |
| 15 | --entry index.js --output-path ./dist --output-filename url-parse.min.js \ |
| 16 | --mode production |