@s-ui/bundler 9.30.1-beta.1 → 9.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -7
- package/shared/minify-css.js +10 -4
- package/shared/module-rules-sass.js +9 -4
- package/webpack.config.dev.js +14 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@s-ui/bundler",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.31.0",
|
|
4
4
|
"description": "Config-free bundler for ES6 React apps.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"sui-bundler": "./bin/sui-bundler.js"
|
|
@@ -21,25 +21,26 @@
|
|
|
21
21
|
},
|
|
22
22
|
"homepage": "https://github.com/SUI-Components/sui/tree/master/packages/sui-bundler#readme",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@babel/core": "7.18.
|
|
25
|
-
"@parcel/css": "1.12.0",
|
|
24
|
+
"@babel/core": "7.18.9",
|
|
26
25
|
"@s-ui/helpers": "1",
|
|
27
26
|
"@s-ui/sass-loader": "1",
|
|
28
27
|
"address": "1.2.0",
|
|
28
|
+
"autoprefixer": "10.4.7",
|
|
29
29
|
"babel-loader": "8.2.5",
|
|
30
30
|
"babel-preset-sui": "3",
|
|
31
31
|
"buffer": "6.0.3",
|
|
32
32
|
"commander": "8.3.0",
|
|
33
33
|
"css-loader": "6.7.1",
|
|
34
34
|
"css-minimizer-webpack-plugin": "4.0.0",
|
|
35
|
-
"esbuild": "0.14.
|
|
36
|
-
"escape-string-regexp": "
|
|
35
|
+
"esbuild": "0.14.49",
|
|
36
|
+
"escape-string-regexp": "4.0.0",
|
|
37
37
|
"fast-glob": "3.2.11",
|
|
38
38
|
"find-free-ports": "3.0.0",
|
|
39
39
|
"html-webpack-plugin": "5.5.0",
|
|
40
40
|
"https-browserify": "1.0.0",
|
|
41
41
|
"mini-css-extract-plugin": "2.6.1",
|
|
42
|
-
"
|
|
42
|
+
"postcss": "8.4.14",
|
|
43
|
+
"postcss-loader": "7.0.1",
|
|
43
44
|
"process": "0.11.10",
|
|
44
45
|
"sass": "1.52.3",
|
|
45
46
|
"stream-http": "3.2.0",
|
|
@@ -47,7 +48,7 @@
|
|
|
47
48
|
"style-loader": "3.3.1",
|
|
48
49
|
"url": "0.11.0",
|
|
49
50
|
"webpack": "5.73.0",
|
|
50
|
-
"webpack-dev-server": "4.9.
|
|
51
|
+
"webpack-dev-server": "4.9.3",
|
|
51
52
|
"webpack-manifest-plugin": "5.0.0",
|
|
52
53
|
"webpack-node-externals": "3.0.0"
|
|
53
54
|
}
|
package/shared/minify-css.js
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
const
|
|
2
|
-
const parcelCss = require('@parcel/css')
|
|
1
|
+
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin')
|
|
3
2
|
|
|
4
3
|
const createCssMinimizerPlugin = () =>
|
|
5
|
-
new
|
|
6
|
-
|
|
4
|
+
new CssMinimizerPlugin({
|
|
5
|
+
minimizerOptions: {
|
|
6
|
+
preset: [
|
|
7
|
+
'default',
|
|
8
|
+
{
|
|
9
|
+
discardComments: {removeAll: true}
|
|
10
|
+
}
|
|
11
|
+
]
|
|
12
|
+
}
|
|
7
13
|
})
|
|
8
14
|
|
|
9
15
|
module.exports = () => createCssMinimizerPlugin()
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
|
|
2
|
-
const parcelCSS = require('@parcel/css')
|
|
3
2
|
|
|
4
|
-
const {cleanList, config, when} = require('./index
|
|
3
|
+
const {cleanList, config, when} = require('./index')
|
|
5
4
|
|
|
6
5
|
module.exports = {
|
|
7
6
|
test: /(\.css|\.scss)$/,
|
|
@@ -15,9 +14,15 @@ module.exports = {
|
|
|
15
14
|
}
|
|
16
15
|
})),
|
|
17
16
|
{
|
|
18
|
-
loader: require.resolve('
|
|
17
|
+
loader: require.resolve('postcss-loader'),
|
|
19
18
|
options: {
|
|
20
|
-
|
|
19
|
+
postcssOptions: {
|
|
20
|
+
plugins: [
|
|
21
|
+
require('autoprefixer')({
|
|
22
|
+
overrideBrowserslist: config.targets
|
|
23
|
+
})
|
|
24
|
+
]
|
|
25
|
+
}
|
|
21
26
|
}
|
|
22
27
|
},
|
|
23
28
|
require.resolve('@s-ui/sass-loader')
|
package/webpack.config.dev.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
const path = require('path')
|
|
4
4
|
const webpack = require('webpack')
|
|
5
5
|
const HtmlWebpackPlugin = require('html-webpack-plugin')
|
|
6
|
-
const parcelCSS = require('@parcel/css')
|
|
7
6
|
|
|
8
7
|
const {
|
|
9
8
|
envVars,
|
|
@@ -23,7 +22,7 @@ const EXCLUDED_FOLDERS_REGEXP = new RegExp(
|
|
|
23
22
|
)
|
|
24
23
|
const outputPath = path.join(process.cwd(), 'dist')
|
|
25
24
|
|
|
26
|
-
const {CI = false
|
|
25
|
+
const {CI = false} = process.env
|
|
27
26
|
|
|
28
27
|
process.env.NODE_ENV = 'development'
|
|
29
28
|
|
|
@@ -32,7 +31,7 @@ process.env.NODE_ENV = 'development'
|
|
|
32
31
|
/** @type {WebpackConfig} */
|
|
33
32
|
const webpackConfig = {
|
|
34
33
|
mode: 'development',
|
|
35
|
-
context: path.resolve(PWD, 'src'),
|
|
34
|
+
context: path.resolve(process.env.PWD, 'src'),
|
|
36
35
|
resolve: {
|
|
37
36
|
alias: {
|
|
38
37
|
...defaultAlias,
|
|
@@ -107,7 +106,18 @@ const webpackConfig = {
|
|
|
107
106
|
}
|
|
108
107
|
})),
|
|
109
108
|
require.resolve('css-loader'),
|
|
110
|
-
|
|
109
|
+
{
|
|
110
|
+
loader: require.resolve('postcss-loader'),
|
|
111
|
+
options: {
|
|
112
|
+
postcssOptions: {
|
|
113
|
+
plugins: [
|
|
114
|
+
require('autoprefixer')({
|
|
115
|
+
overrideBrowserslist: config.targets
|
|
116
|
+
})
|
|
117
|
+
]
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
111
121
|
require.resolve('@s-ui/sass-loader')
|
|
112
122
|
])
|
|
113
123
|
},
|