Skip to content
Snippets Groups Projects
Commit 89bd40af authored by Praveen Arimbrathodiyil's avatar Praveen Arimbrathodiyil
Browse files

Build with webpack 4

parent 50873f69
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ Build-Depends:
node-core-js,
node-webpack-merge,
pigz,
webpack,
webpack (>= 4~),
Standards-Version: 4.4.0
Homepage: https://github.com/digitalbazaar/jsonld.js
Vcs-Browser: https://salsa.debian.org/js-team/node-jsonld
......
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -111,6 +111,7 @@
new webpack.NamedModulesPlugin(),
new webpack.DefinePlugin({ "process.env.NODE_ENV": JSON.stringify("development") }),
],
+ mode: 'development',
output: {
path: path.join(__dirname, 'dist'),
filename: info.filenameBase + '.js',
@@ -127,6 +128,7 @@
// optimized and minified bundle
const minify = webpackMerge(common, {
+ mode: 'production',
output: {
path: path.join(__dirname, 'dist'),
filename: info.filenameBase + '.min.js',
@@ -138,16 +140,6 @@
new webpack.DefinePlugin({ "process.env.NODE_ENV": JSON.stringify("production") }),
new webpack.optimize.ModuleConcatenationPlugin(),
new webpack.NoEmitOnErrorsPlugin(),
- new webpack.optimize.UglifyJsPlugin({
- //beautify: true,
- compress: {
- warnings: true
- },
- output: {
- comments: false
- },
- sourceMap: true
- })
]
});
if(info.library === null) {
......@@ -2,3 +2,4 @@
2001_babel_downgrade.patch
2002_webpack_downgrade.patch
2003_webpack_shared_modules.patch
2004_webpack4.patch
......@@ -19,3 +19,7 @@ override_dh_auto_build:
# TODO: Enable testsuite when cross-env (and more) is in Debian
override_dh_auto_test:
# cross-env NODE_ENV=test mocha --delay -t 30000 -A -R ${REPORTER:-spec} tests/test.js
override_dh_auto_clean:
rm -rf node_modules/.cache
dh_auto_clean
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment