Skip to content
This repository was archived by the owner on Dec 26, 2022. It is now read-only.

Commit 9ebe1e5

Browse files
authored
Clean and fix deps (#27)
* Fix build and clear * node 16 * Fix workflow * Upd deps
1 parent 47d30bb commit 9ebe1e5

29 files changed

+105
-1194
lines changed

β€Ž.erb/configs/webpack.config.main.prod.babel.jsβ€Ž

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ import path from 'path';
66
import webpack from 'webpack';
77
import { merge } from 'webpack-merge';
88
import TerserPlugin from 'terser-webpack-plugin';
9-
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
9+
import Dotenv from 'dotenv-webpack';
10+
// import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
11+
1012
import baseConfig from './webpack.config.base';
1113
import CheckNodeEnv from '../scripts/CheckNodeEnv';
1214
import DeleteSourceMaps from '../scripts/DeleteSourceMaps';
13-
import Dotenv from 'dotenv-webpack';
1415

1516
CheckNodeEnv('production');
1617
DeleteSourceMaps();
@@ -46,11 +47,11 @@ export default merge(baseConfig, {
4647
},
4748

4849
plugins: [
49-
new BundleAnalyzerPlugin({
50-
analyzerMode:
51-
process.env.OPEN_ANALYZER === 'true' ? 'server' : 'disabled',
52-
openAnalyzer: process.env.OPEN_ANALYZER === 'true',
53-
}),
50+
// new BundleAnalyzerPlugin({
51+
// analyzerMode:
52+
// process.env.OPEN_ANALYZER === 'true' ? 'server' : 'disabled',
53+
// openAnalyzer: process.env.OPEN_ANALYZER === 'true',
54+
// }),
5455

5556
/**
5657
* Create global constants which can be configured at compile time.

β€Ž.erb/configs/webpack.config.renderer.dev.babel.jsβ€Ž

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -103,48 +103,48 @@ export default merge(baseConfig, {
103103
],
104104
},
105105
// SASS support - compile all .global.scss files and pipe it to style.css
106-
{
107-
test: /\.global\.(scss|sass)$/,
108-
use: [
109-
{
110-
loader: 'style-loader',
111-
},
112-
{
113-
loader: 'css-loader',
114-
options: {
115-
sourceMap: true,
116-
},
117-
},
118-
{
119-
loader: 'sass-loader',
120-
},
121-
],
122-
},
123-
// SASS support - compile all other .scss files and pipe it to style.css
124-
{
125-
test: /^((?!\.global).)*\.(scss|sass)$/,
126-
use: [
127-
{
128-
loader: 'style-loader',
129-
},
130-
{
131-
loader: '@teamsupercell/typings-for-css-modules-loader',
132-
},
133-
{
134-
loader: 'css-loader',
135-
options: {
136-
modules: {
137-
localIdentName: '[name]__[local]__[hash:base64:5]',
138-
},
139-
sourceMap: true,
140-
importLoaders: 1,
141-
},
142-
},
143-
{
144-
loader: 'sass-loader',
145-
},
146-
],
147-
},
106+
// {
107+
// test: /\.global\.(scss|sass)$/,
108+
// use: [
109+
// {
110+
// loader: 'style-loader',
111+
// },
112+
// {
113+
// loader: 'css-loader',
114+
// options: {
115+
// sourceMap: true,
116+
// },
117+
// },
118+
// {
119+
// loader: 'sass-loader',
120+
// },
121+
// ],
122+
// },
123+
// // SASS support - compile all other .scss files and pipe it to style.css
124+
// {
125+
// test: /^((?!\.global).)*\.(scss|sass)$/,
126+
// use: [
127+
// {
128+
// loader: 'style-loader',
129+
// },
130+
// {
131+
// loader: '@teamsupercell/typings-for-css-modules-loader',
132+
// },
133+
// {
134+
// loader: 'css-loader',
135+
// options: {
136+
// modules: {
137+
// localIdentName: '[name]__[local]__[hash:base64:5]',
138+
// },
139+
// sourceMap: true,
140+
// importLoaders: 1,
141+
// },
142+
// },
143+
// {
144+
// loader: 'sass-loader',
145+
// },
146+
// ],
147+
// },
148148
{
149149
test: /\.less$/,
150150
use: [

β€Ž.erb/configs/webpack.config.renderer.prod.babel.jsβ€Ž

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
import path from 'path';
66
import webpack from 'webpack';
77
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
8-
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
9-
import CssMinimizerPlugin from 'css-minimizer-webpack-plugin';
8+
// import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
9+
// import CssMinimizerPlugin from 'css-minimizer-webpack-plugin';
1010
import { merge } from 'webpack-merge';
1111
import TerserPlugin from 'terser-webpack-plugin';
1212
import Dotenv from 'dotenv-webpack';
13+
1314
import baseConfig from './webpack.config.base';
1415
import CheckNodeEnv from '../scripts/CheckNodeEnv';
1516
import DeleteSourceMaps from '../scripts/DeleteSourceMaps';
@@ -152,7 +153,7 @@ export default merge(baseConfig, {
152153
new TerserPlugin({
153154
parallel: true,
154155
}),
155-
new CssMinimizerPlugin(),
156+
// new CssMinimizerPlugin(),
156157
],
157158
},
158159

@@ -180,10 +181,10 @@ export default merge(baseConfig, {
180181
filename: 'style.css',
181182
}),
182183

183-
new BundleAnalyzerPlugin({
184-
analyzerMode:
185-
process.env.OPEN_ANALYZER === 'true' ? 'server' : 'disabled',
186-
openAnalyzer: process.env.OPEN_ANALYZER === 'true',
187-
}),
184+
// new BundleAnalyzerPlugin({
185+
// analyzerMode:
186+
// process.env.OPEN_ANALYZER === 'true' ? 'server' : 'disabled',
187+
// openAnalyzer: process.env.OPEN_ANALYZER === 'true',
188+
// }),
188189
],
189190
});

β€Ž.erb/img/erb-banner.pngβ€Ž

-1.96 MB
Binary file not shown.

β€Ž.erb/img/erb-logo.pngβ€Ž

-28.1 KB
Binary file not shown.
-6.58 KB
Binary file not shown.

β€Ž.erb/img/eslint-padded.pngβ€Ž

-9.5 KB
Binary file not shown.

β€Ž.erb/img/eslint.pngβ€Ž

-9.89 KB
Binary file not shown.

β€Ž.erb/img/jest-padded-90.pngβ€Ž

-3.06 KB
Binary file not shown.

β€Ž.erb/img/jest-padded.pngβ€Ž

-3.87 KB
Binary file not shown.

0 commit comments

Comments
Β (0)