@unsetsoft/ryunixjs 0.2.23-nightly.3 → 0.2.23

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.
Files changed (2) hide show
  1. package/package.json +1 -4
  2. package/webpack.config.js +11 -16
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unsetsoft/ryunixjs",
3
- "version": "0.2.23-nightly.3",
3
+ "version": "0.2.23",
4
4
  "license": "MIT",
5
5
  "main": "./dist/Ryunix.js",
6
6
  "private": false,
@@ -30,15 +30,12 @@
30
30
  "file-loader": "^6.2.0",
31
31
  "html-webpack-plugin": "^5.5.3",
32
32
  "image-webpack-loader": "8.1.0",
33
- "mini-css-extract-plugin": "^2.7.6",
34
33
  "node-sass": "9.0.0",
35
- "optimize-css-assets-webpack-plugin": "^6.0.1",
36
34
  "rollup": "3.24.0",
37
35
  "sass": "^1.66.1",
38
36
  "sass-loader": "^13.3.2",
39
37
  "style-loader": "^3.3.3",
40
38
  "terminal-log": "^1.0.1",
41
- "uglifyjs-webpack-plugin": "^2.2.0",
42
39
  "url-loader": "^4.1.1",
43
40
  "webpack": "^5.88.2",
44
41
  "webpack-cli": "^5.1.4",
package/webpack.config.js CHANGED
@@ -1,10 +1,6 @@
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");
8
4
 
9
5
  const dir = path.dirname(path.resolve(path.join(__dirname, "/../", "../")));
10
6
  module.exports = {
@@ -13,23 +9,22 @@ module.exports = {
13
9
  devtool: "nosources-source-map",
14
10
  output: {
15
11
  path: path.join(dir, ".ryunix"),
16
-
17
- filename: "./assets/js/[chunkhash].bundle.js",
12
+ chunkFilename: "./assets/js/[name].[fullhash:8].bundle.js",
13
+ filename: "./assets/js/[name].[fullhash:8].bundle.js",
18
14
  devtoolModuleFilenameTemplate: "ryunix/[resource-path]",
15
+ lean: true,
19
16
  },
20
17
  devServer: {
21
18
  hot: true,
22
19
  historyApiFallback: { index: "/", disableDotRule: true },
23
20
  },
24
21
  optimization: {
25
- minimizer: [
26
- new UglifyJsPlugin({
27
- cache: true,
28
- parallel: true,
29
- sourceMap: false, // set to true if you want JS source maps for css
30
- }),
31
- new OptimizeCSSAssetsPlugin({}),
32
- ],
22
+ runtimeChunk: "single",
23
+ splitChunks: {
24
+ chunks: "all",
25
+ maxInitialRequests: Infinity,
26
+ minSize: 0,
27
+ },
33
28
  },
34
29
  stats: {
35
30
  assets: false,
@@ -57,7 +52,7 @@ module.exports = {
57
52
  },
58
53
  {
59
54
  test: /\.sass|css$/,
60
- use: [MiniCssExtractPlugin.loader, "css-loader", "sass-loader"],
55
+ use: ["style-loader", "css-loader", "sass-loader"],
61
56
  },
62
57
  {
63
58
  test: /\.(jpg|jpeg|png|gif|mp3|svg|mp4|pdf)$/,
@@ -66,6 +61,7 @@ module.exports = {
66
61
  loader: "file-loader",
67
62
  options: {
68
63
  name: "[name].[ext]",
64
+ outputPath: "files/",
69
65
  },
70
66
  },
71
67
  ],
@@ -85,7 +81,6 @@ module.exports = {
85
81
  template: path.join(dir, "public", "index.html"),
86
82
  }),
87
83
  new ErrorOverlayPlugin(),
88
- new MiniCssExtractPlugin(),
89
84
  ],
90
85
  externals: {
91
86
  ryunix: "Ryunix",