@s-ui/bundler 8.0.0-beta.27 → 8.0.0-beta.30
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.
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/* eslint-disable no-console */
|
|
3
3
|
|
|
4
4
|
const webpack = require('webpack')
|
|
5
|
-
const log = require('../shared/log')
|
|
6
|
-
const config = require('../webpack.config.prod')
|
|
5
|
+
const log = require('../shared/log.js')
|
|
6
|
+
const config = require('../webpack.config.prod.js')
|
|
7
7
|
const {getSpawnPromise} = require('@s-ui/helpers/cli')
|
|
8
8
|
const logUpdate = require('@s-ui/helpers/log-update')
|
|
9
9
|
|
package/bin/sui-bundler-build.js
CHANGED
|
@@ -59,7 +59,7 @@ if (clean) {
|
|
|
59
59
|
rimraf.sync(path.resolve(process.env.PWD, 'public'))
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
log.processing('Generating minified bundle
|
|
62
|
+
log.processing('Generating minified bundle...')
|
|
63
63
|
|
|
64
64
|
webpack(nextConfig).run(async (error, stats) => {
|
|
65
65
|
if (error) {
|
package/bin/sui-bundler-dev.js
CHANGED
|
@@ -18,8 +18,8 @@ const webpackConfig = require('../webpack.config.dev')
|
|
|
18
18
|
const createDevServerConfig = require('../factories/createDevServerConfig')
|
|
19
19
|
const createCompiler = require('../factories/createCompiler')
|
|
20
20
|
|
|
21
|
-
const linkLoaderConfigBuilder = require('../loaders/linkLoaderConfigBuilder')
|
|
22
|
-
const log = require('../shared/log')
|
|
21
|
+
const linkLoaderConfigBuilder = require('../loaders/linkLoaderConfigBuilder.js')
|
|
22
|
+
const log = require('../shared/log.js')
|
|
23
23
|
|
|
24
24
|
const {CI = false, HOST = '0.0.0.0', HTTPS, PORT} = process.env
|
|
25
25
|
const DEFAULT_PORT = +PORT || 3000
|
package/bin/sui-bundler-lib.js
CHANGED
|
@@ -7,8 +7,8 @@ const webpack = require('webpack')
|
|
|
7
7
|
const path = require('path')
|
|
8
8
|
const {showError, showWarning} = require('@s-ui/helpers/cli')
|
|
9
9
|
const {getPackageJson} = require('@s-ui/helpers/packages')
|
|
10
|
-
const config = require('../webpack.config.lib')
|
|
11
|
-
const log = require('../shared/log')
|
|
10
|
+
const config = require('../webpack.config.lib.js')
|
|
11
|
+
const log = require('../shared/log.js')
|
|
12
12
|
|
|
13
13
|
program
|
|
14
14
|
.usage('[options] <entry>')
|
|
@@ -72,7 +72,7 @@ if (clean) {
|
|
|
72
72
|
rimraf.sync(outputFolder)
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
log.processing('Generating minified bundle
|
|
75
|
+
log.processing('Generating minified bundle...')
|
|
76
76
|
|
|
77
77
|
webpack(webpackConfig).run((error, stats) => {
|
|
78
78
|
if (error) {
|
|
@@ -12,6 +12,7 @@ const getWatchOptions = ({context, watch}) => {
|
|
|
12
12
|
return {ignored: ignoredFiles(context)}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
/** @returns {import('webpack-dev-server').Configuration} */
|
|
15
16
|
module.exports = config => ({
|
|
16
17
|
allowedHosts: 'all',
|
|
17
18
|
client: {
|
|
@@ -20,14 +21,20 @@ module.exports = config => ({
|
|
|
20
21
|
errors: true,
|
|
21
22
|
warnings: false
|
|
22
23
|
},
|
|
23
|
-
progress:
|
|
24
|
+
progress: false
|
|
25
|
+
},
|
|
26
|
+
// Enable gzip compression of generated files
|
|
27
|
+
compress: true,
|
|
28
|
+
headers: {
|
|
29
|
+
'Access-Control-Allow-Origin': '*',
|
|
30
|
+
'Access-Control-Allow-Methods': '*',
|
|
31
|
+
'Access-Control-Allow-Headers': '*'
|
|
24
32
|
},
|
|
25
33
|
static: {
|
|
26
34
|
directory: 'public',
|
|
27
35
|
watch: getWatchOptions(config)
|
|
28
36
|
},
|
|
29
37
|
hot: true,
|
|
30
|
-
https: protocol === 'https',
|
|
31
38
|
host,
|
|
32
39
|
historyApiFallback: {
|
|
33
40
|
disableDotRule: true
|
|
@@ -38,5 +45,6 @@ module.exports = config => ({
|
|
|
38
45
|
middlewares.push(noopServiceWorkerMiddleware(config.output.publicPath))
|
|
39
46
|
|
|
40
47
|
return middlewares
|
|
41
|
-
}
|
|
48
|
+
},
|
|
49
|
+
server: protocol
|
|
42
50
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@s-ui/bundler",
|
|
3
|
-
"version": "8.0.0-beta.
|
|
3
|
+
"version": "8.0.0-beta.30",
|
|
4
4
|
"description": "Config-free bundler for ES6 React apps.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"sui-bundler": "./bin/sui-bundler.js"
|
|
@@ -31,18 +31,18 @@
|
|
|
31
31
|
"buffer": "6.0.3",
|
|
32
32
|
"commander": "8.3.0",
|
|
33
33
|
"css-loader": "6.5.1",
|
|
34
|
-
"css-minimizer-webpack-plugin": "3.
|
|
34
|
+
"css-minimizer-webpack-plugin": "3.4.1",
|
|
35
35
|
"esbuild": "0.14.11",
|
|
36
36
|
"escape-string-regexp": "4.0.0",
|
|
37
37
|
"fast-glob": "3.2.10",
|
|
38
38
|
"find-free-ports": "3.0.0",
|
|
39
39
|
"html-webpack-plugin": "5.5.0",
|
|
40
|
-
"mini-css-extract-plugin": "2.
|
|
40
|
+
"mini-css-extract-plugin": "2.5.2",
|
|
41
41
|
"postcss": "8.4.5",
|
|
42
42
|
"postcss-loader": "6.2.1",
|
|
43
43
|
"process": "0.11.10",
|
|
44
44
|
"rimraf": "3.0.2",
|
|
45
|
-
"sass": "1.
|
|
45
|
+
"sass": "1.49.0",
|
|
46
46
|
"speed-measure-webpack-plugin": "1.5.0",
|
|
47
47
|
"strip-ansi": "6.0.1",
|
|
48
48
|
"style-loader": "3.3.1",
|