Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gitlab
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
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 Ruby Team
gitlab
Commits
f28d3cb2
Commit
f28d3cb2
authored
4 years ago
by
Sruthi Chandran
Browse files
Options
Downloads
Patches
Plain Diff
Add canvas as externals in webpack.config.js
parent
4a8c79be
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
debian/patches/0740-use-packaged-modules.patch
+13
-4
13 additions, 4 deletions
debian/patches/0740-use-packaged-modules.patch
with
13 additions
and
4 deletions
debian/patches/0740-use-packaged-modules.patch
+
13
−
4
View file @
f28d3cb2
...
...
@@ -16,7 +16,16 @@ Use debian packaged node modules when available
const CopyWebpackPlugin = require('copy-webpack-plugin');
const vendorDllHash = require('./helpers/vendor_dll_hash');
@@ -159,13 +158,13 @@
@@ -150,6 +149,8 @@
entry: generateEntries,
+ externals: [ 'canvas' ],
+
output: {
path: path.join(ROOT_PATH, 'public/assets/webpack'),
publicPath: '/assets/webpack/',
@@ -159,13 +160,13 @@
},
resolve: {
...
...
@@ -33,7 +42,7 @@ Use debian packaged node modules when available
},
module: {
@@ -178,9 +17
7
,13 @@
@@ -178,9 +17
9
,13 @@
},
{
test: /\.js$/,
...
...
@@ -48,7 +57,7 @@ Use debian packaged node modules when available
loader: 'babel-loader',
options: {
cacheDirectory: path.join(CACHE_PATH, 'babel-loader'),
@@ -516,19 +51
9
,6 @@
@@ -516,19 +5
2
1,6 @@
// enable HMR only in webpack-dev-server
DEV_SERVER_LIVERELOAD && new webpack.HotModuleReplacementPlugin(),
...
...
@@ -68,7 +77,7 @@ Use debian packaged node modules when available
new webpack.DefinePlugin({
// This one is used to define window.gon.ee and other things properly in tests:
'process.env.IS_EE': JSON.stringify(IS_EE),
@@ -563,6 +55
3
,7 @@
@@ -563,6 +55
5
,7 @@
node: {
fs: 'empty', // sqljs requires fs
...
...
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