@unsetsoft/ryunixjs 0.2.22 → 0.2.23-nightly.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 +11 -8
- package/webpack.config.js +29 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unsetsoft/ryunixjs",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.23-nightly.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/Ryunix.js",
|
|
6
6
|
"private": false,
|
|
@@ -17,16 +17,11 @@
|
|
|
17
17
|
"ryunix": "./bin/index.js"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"terminal-log": "^1.0.1",
|
|
21
|
-
"sass": "^1.66.1",
|
|
22
|
-
"url-loader": "^4.1.1",
|
|
23
|
-
"rollup": "3.24.0",
|
|
24
|
-
"yargs": "^17.7.2",
|
|
25
20
|
"@babel/cli": "7.19.3",
|
|
26
21
|
"@babel/core": "^7.22.11",
|
|
27
|
-
"@babel/polyfill": "7.12.1",
|
|
28
22
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
29
23
|
"@babel/plugin-transform-react-jsx": "^7.22.5",
|
|
24
|
+
"@babel/polyfill": "7.12.1",
|
|
30
25
|
"@babel/preset-env": "^7.22.14",
|
|
31
26
|
"@babel/preset-react": "^7.22.5",
|
|
32
27
|
"babel-loader": "^9.1.3",
|
|
@@ -35,12 +30,20 @@
|
|
|
35
30
|
"file-loader": "^6.2.0",
|
|
36
31
|
"html-webpack-plugin": "^5.5.3",
|
|
37
32
|
"image-webpack-loader": "8.1.0",
|
|
33
|
+
"mini-css-extract-plugin": "^2.7.6",
|
|
38
34
|
"node-sass": "9.0.0",
|
|
35
|
+
"optimize-css-assets-webpack-plugin": "^6.0.1",
|
|
36
|
+
"rollup": "3.24.0",
|
|
37
|
+
"sass": "^1.66.1",
|
|
39
38
|
"sass-loader": "^13.3.2",
|
|
40
39
|
"style-loader": "^3.3.3",
|
|
40
|
+
"terminal-log": "^1.0.1",
|
|
41
|
+
"uglifyjs-webpack-plugin": "^2.2.0",
|
|
42
|
+
"url-loader": "^4.1.1",
|
|
41
43
|
"webpack": "^5.88.2",
|
|
42
44
|
"webpack-cli": "^5.1.4",
|
|
43
|
-
"webpack-dev-server": "^4.15.1"
|
|
45
|
+
"webpack-dev-server": "^4.15.1",
|
|
46
|
+
"yargs": "^17.7.2"
|
|
44
47
|
},
|
|
45
48
|
"engines": {
|
|
46
49
|
"node": ">=18.16.0"
|
package/webpack.config.js
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
const path = require("path");
|
|
2
2
|
const HtmlWebpackPlugin = require("html-webpack-plugin");
|
|
3
3
|
const ErrorOverlayPlugin = require("error-overlay-webpack-plugin");
|
|
4
|
+
const webpack = require("webpack");
|
|
5
|
+
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
|
6
|
+
const UglifyJsPlugin = require("uglifyjs-webpack-plugin");
|
|
7
|
+
const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin");
|
|
4
8
|
|
|
5
9
|
const dir = path.dirname(path.resolve(path.join(__dirname, "/../", "../")));
|
|
6
10
|
module.exports = {
|
|
7
11
|
mode: "production",
|
|
8
12
|
entry: path.join(dir, "src", "main.ryx"),
|
|
13
|
+
devtool: "nosources-source-map",
|
|
9
14
|
output: {
|
|
10
15
|
path: path.join(dir, ".ryunix"),
|
|
11
16
|
|
|
@@ -13,8 +18,19 @@ module.exports = {
|
|
|
13
18
|
devtoolModuleFilenameTemplate: "ryunix/[resource-path]",
|
|
14
19
|
},
|
|
15
20
|
devServer: {
|
|
21
|
+
hot: true,
|
|
16
22
|
historyApiFallback: { index: "/", disableDotRule: true },
|
|
17
23
|
},
|
|
24
|
+
optimization: {
|
|
25
|
+
minimizer: [
|
|
26
|
+
new UglifyJsPlugin({
|
|
27
|
+
cache: true,
|
|
28
|
+
parallel: true,
|
|
29
|
+
sourceMap: true, // set to true if you want JS source maps for css
|
|
30
|
+
}),
|
|
31
|
+
new OptimizeCSSAssetsPlugin({}),
|
|
32
|
+
],
|
|
33
|
+
},
|
|
18
34
|
stats: {
|
|
19
35
|
assets: false,
|
|
20
36
|
children: false,
|
|
@@ -40,15 +56,22 @@ module.exports = {
|
|
|
40
56
|
},
|
|
41
57
|
},
|
|
42
58
|
{
|
|
43
|
-
test: /\.
|
|
44
|
-
use: [
|
|
59
|
+
test: /\.sa?css$/,
|
|
60
|
+
use: [MiniCssExtractPlugin.loader, "css-loader", "sass-loader"],
|
|
45
61
|
},
|
|
46
62
|
{
|
|
47
|
-
test: /\.(jpg|jpeg|png|gif|mp3|svg|mp4)$/,
|
|
48
|
-
use: [
|
|
63
|
+
test: /\.(jpg|jpeg|png|gif|mp3|svg|mp4|pdf)$/,
|
|
64
|
+
use: [
|
|
65
|
+
{
|
|
66
|
+
loader: "file-loader",
|
|
67
|
+
options: {
|
|
68
|
+
name: "[name].[ext]",
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
],
|
|
49
72
|
},
|
|
50
73
|
{
|
|
51
|
-
test: /\.(png|woff|woff2|eot|ttf|svg)$/, // to import images and fonts
|
|
74
|
+
test: /\.(png|woff|woff2|eot|ttf|svg|pdf)$/, // to import images and fonts
|
|
52
75
|
loader: "url-loader",
|
|
53
76
|
options: { limit: false },
|
|
54
77
|
},
|
|
@@ -62,6 +85,7 @@ module.exports = {
|
|
|
62
85
|
template: path.join(dir, "public", "index.html"),
|
|
63
86
|
}),
|
|
64
87
|
new ErrorOverlayPlugin(),
|
|
88
|
+
new MiniCssExtractPlugin(),
|
|
65
89
|
],
|
|
66
90
|
externals: {
|
|
67
91
|
ryunix: "Ryunix",
|