Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
node-jsonld
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Debian JavaScript Maintainers
node-jsonld
Commits
89bd40af
Commit
89bd40af
authored
5 years ago
by
Praveen Arimbrathodiyil
Browse files
Options
Downloads
Patches
Plain Diff
Build with webpack 4
parent
50873f69
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
debian/control
+1
-1
1 addition, 1 deletion
debian/control
debian/patches/2004_webpack4.patch
+35
-0
35 additions, 0 deletions
debian/patches/2004_webpack4.patch
debian/patches/series
+1
-0
1 addition, 0 deletions
debian/patches/series
debian/rules
+4
-0
4 additions, 0 deletions
debian/rules
with
41 additions
and
1 deletion
debian/control
+
1
−
1
View file @
89bd40af
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
debian/patches/2004_webpack4.patch
0 → 100644
+
35
−
0
View file @
89bd40af
--- 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) {
This diff is collapsed.
Click to expand it.
debian/patches/series
+
1
−
0
View file @
89bd40af
...
...
@@ -2,3 +2,4 @@
2001_babel_downgrade.patch
2002_webpack_downgrade.patch
2003_webpack_shared_modules.patch
2004_webpack4.patch
This diff is collapsed.
Click to expand it.
debian/rules
+
4
−
0
View file @
89bd40af
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment