mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Temporarily ignore type errors from EnvironmentPlugin since type matching is currently too strict
(cherry picked from commit 7dea5f7d98
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
ea3970cfb5
commit
4e05a5c310
@@ -79,6 +79,7 @@ const SCSS_LOADERS = [
|
|||||||
|
|
||||||
export const commonExports = {
|
export const commonExports = {
|
||||||
plugins: [
|
plugins: [
|
||||||
|
// @ts-expect-error: EnvironmentPlugin constructor types are currently to strict see issue https://github.com/webpack/webpack/issues/18719
|
||||||
new EnvironmentPlugin({
|
new EnvironmentPlugin({
|
||||||
languageHashes: getFileHashes(path.join(__dirname, '..', 'src', 'assets', 'i18n'), /.*\.json5/g),
|
languageHashes: getFileHashes(path.join(__dirname, '..', 'src', 'assets', 'i18n'), /.*\.json5/g),
|
||||||
}),
|
}),
|
||||||
|
@@ -1,16 +1,17 @@
|
|||||||
import { commonExports } from './webpack.common';
|
import { EnvironmentPlugin } from 'webpack';
|
||||||
import { projectRoot } from './helpers';
|
|
||||||
|
|
||||||
const webpack = require('webpack');
|
import { projectRoot } from './helpers';
|
||||||
|
import { commonExports } from './webpack.common';
|
||||||
|
|
||||||
module.exports = Object.assign({}, commonExports, {
|
module.exports = Object.assign({}, commonExports, {
|
||||||
plugins: [
|
plugins: [
|
||||||
...commonExports.plugins,
|
...commonExports.plugins,
|
||||||
new webpack.EnvironmentPlugin({
|
// @ts-expect-error: EnvironmentPlugin constructor types are currently to strict see issue https://github.com/webpack/webpack/issues/18719
|
||||||
|
new EnvironmentPlugin({
|
||||||
'process.env': {
|
'process.env': {
|
||||||
NODE_ENV: JSON.stringify('production'),
|
NODE_ENV: 'production',
|
||||||
AOT: true
|
AOT: true,
|
||||||
}
|
},
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
|
Reference in New Issue
Block a user