Build with webpack 4 (add mode, entry and output)

parent ec24a844
......@@ -8,7 +8,7 @@ Build-Depends:
, nodejs
, pkg-js-tools
, node-tape
, webpack
, webpack (>= 4~)
, node-babel-loader
, node-babel-plugin-add-module-exports
, node-babel-preset-es2015
......
......@@ -12,12 +12,10 @@ override_dh_auto_build:
--target=web \
--output-library=d3 \
--output-library-target=umd \
index.js build/d3-request.js
--entry index.js \
--output build/d3-request.js
webpack --config debian/webpack.config.js \
--target node \
--output-library-target=commonjs \
index.js build/d3-request.node.js
override_dh_auto_clean:
rm -rf build
dh_auto_clean
--entry index.js \
--output build/d3-request.node.js
'use strict';
var path = require('path');
module.exports = {
mode: 'development',
resolve: {
modules: ['/usr/lib/nodejs', '.'],
},
......
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