Add canvas as externals in webpack.config.js
This commit is contained in:
parent
045e956fd3
commit
a18796fc31
1 changed files with 13 additions and 4 deletions
17
debian/patches/0740-use-packaged-modules.patch
vendored
17
debian/patches/0740-use-packaged-modules.patch
vendored
|
@ -16,7 +16,16 @@ Use debian packaged node modules when available
|
||||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||||
const vendorDllHash = require('./helpers/vendor_dll_hash');
|
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: {
|
resolve: {
|
||||||
|
@ -33,7 +42,7 @@ Use debian packaged node modules when available
|
||||||
},
|
},
|
||||||
|
|
||||||
module: {
|
module: {
|
||||||
@@ -178,9 +177,13 @@
|
@@ -178,9 +179,13 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.js$/,
|
test: /\.js$/,
|
||||||
|
@ -48,7 +57,7 @@ Use debian packaged node modules when available
|
||||||
loader: 'babel-loader',
|
loader: 'babel-loader',
|
||||||
options: {
|
options: {
|
||||||
cacheDirectory: path.join(CACHE_PATH, 'babel-loader'),
|
cacheDirectory: path.join(CACHE_PATH, 'babel-loader'),
|
||||||
@@ -516,19 +519,6 @@
|
@@ -516,19 +521,6 @@
|
||||||
// enable HMR only in webpack-dev-server
|
// enable HMR only in webpack-dev-server
|
||||||
DEV_SERVER_LIVERELOAD && new webpack.HotModuleReplacementPlugin(),
|
DEV_SERVER_LIVERELOAD && new webpack.HotModuleReplacementPlugin(),
|
||||||
|
|
||||||
|
@ -68,7 +77,7 @@ Use debian packaged node modules when available
|
||||||
new webpack.DefinePlugin({
|
new webpack.DefinePlugin({
|
||||||
// This one is used to define window.gon.ee and other things properly in tests:
|
// This one is used to define window.gon.ee and other things properly in tests:
|
||||||
'process.env.IS_EE': JSON.stringify(IS_EE),
|
'process.env.IS_EE': JSON.stringify(IS_EE),
|
||||||
@@ -563,6 +553,7 @@
|
@@ -563,6 +555,7 @@
|
||||||
|
|
||||||
node: {
|
node: {
|
||||||
fs: 'empty', // sqljs requires fs
|
fs: 'empty', // sqljs requires fs
|
||||||
|
|
Loading…
Reference in a new issue