diff --git a/.travis.yml b/.travis.yml index c088aac..5192f69 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ script: - npm run test-coverage - echo "RE-RUN tests on the minified file" && npm run test-minified - echo "RE-RUN tests on the webpack and browserify bundled files" && - npm install -g browserify webpack && + npm install -g browserify webpack webpack-cli && ./test/run-module-bundlers-smoketests.sh - export DISPLAY=:99.0 - sh -e /etc/init.d/xvfb start diff --git a/test/run-module-bundlers-smoketests.sh b/test/run-module-bundlers-smoketests.sh index 16a2af0..afc72a1 100755 --- a/test/run-module-bundlers-smoketests.sh +++ b/test/run-module-bundlers-smoketests.sh @@ -1,7 +1,7 @@ echo "\nTest webextension-polyfill bundled with webpack" echo "===============================================" -webpack test/fixtures/bundle-entrypoint.js /tmp/webpack-bundle.js +webpack --mode production --entry ./test/fixtures/bundle-entrypoint.js --output /tmp/webpack-bundle.js TEST_BUNDLED_POLYFILL=/tmp/webpack-bundle.js npm run test echo "\nTest webextension-polyfill bundled with browserify"