87968: Upgrade to Angular 12

This commit is contained in:
Yura Bondarenko
2022-02-24 18:45:31 +01:00
parent 45887154b6
commit 22c5976095
14 changed files with 2869 additions and 5046 deletions

View File

@@ -5,9 +5,6 @@ import { commonExports } from './webpack.common';
module.exports = Object.assign({}, commonExports, {
target: 'web',
node: {
module: 'empty'
},
devServer: {
before(app, server) {
buildAppConfig(join(process.cwd(), 'src/assets/config.json'));

View File

@@ -4,6 +4,7 @@ const CopyWebpackPlugin = require('copy-webpack-plugin');
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ScriptExtPlugin = require('script-ext-html-webpack-plugin');
const sass = require('sass');
export const copyWebpackOptions = {
patterns: [
@@ -40,16 +41,21 @@ export const copyWebpackOptions = {
]
};
const SCSS_LOADERS = [{
loader: 'postcss-loader',
options: {
sourceMap: true
}
},
const SCSS_LOADERS = [
{
loader: 'postcss-loader',
options: {
sourceMap: true
}
},
{
loader: 'sass-loader',
options: {
sourceMap: true,
// sass >1.33 complains about deprecation warnings in Bootstrap 4
// After upgrading to Angular 12 we need to explicitly use an older version here
// todo: remove after upgrading to Bootstrap 5
implementation: sass,
sassOptions: {
includePaths: [projectRoot('./')]
}
@@ -99,5 +105,5 @@ export const commonExports = {
]
},
],
}
},
};

View File

@@ -2,7 +2,4 @@ import { commonExports } from './webpack.common';
module.exports = Object.assign({}, commonExports, {
target: 'web',
node: {
module: 'empty'
}
});