Build with webpack 4

parent 1970fbe4
......@@ -8,7 +8,7 @@ Build-Depends:
debhelper (>= 11~)
, nodejs
, coffeescript
, webpack
, webpack (>= 4.0.0-3~)
, node-uglify
Standards-Version: 4.3.0
Homepage: https://github.com/turbolinks/turbolinks#readme
......
......@@ -9,12 +9,14 @@
override_dh_auto_build:
coffee -c src/turbolinks/*.coffee
webpack --output-library=Turbolinks --config debian/webpack.config.js src/turbolinks/index.js dist/turbolinks.browser.js
webpack --output-library=Turbolinks --config debian/webpack.config.js \
--entry ./src/turbolinks/index.js --output dist/turbolinks.browser.js \
--mode 'development'
uglifyjs dist/turbolinks.browser.js -o dist/turbolinks.js
override_dh_auto_clean:
dh_auto_clean
rm -rf src/turbolinks/*.js dist/
rm -rf src/turbolinks/*.js dist/ node_modules/.cache
#override_dh_auto_test:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment