@unsetsoft/ryunixjs 0.3.2 → 0.3.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unsetsoft/ryunixjs",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "license": "MIT",
5
5
  "main": "./dist/Ryunix.js",
6
6
  "private": false,
package/utils/config.cjs CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  const fs = require("fs");
2
3
  const path = require("path");
3
4
  const configFile = path.join(__dirname, "../../../../", "ryunix.config.js");
@@ -22,15 +22,15 @@ if (manager === "yarn" || manager === "npm" || manager === "bun") {
22
22
  throw new Error(`The manager ${manager} is not supported.`);
23
23
  }
24
24
 
25
- const mode = config.production ? "production" : "development";
25
+
26
26
 
27
27
  export default {
28
- mode,
28
+ mode: "production",
29
29
  context: join(dir, config.appDirectory),
30
30
  entry: "./main.ryx",
31
31
  devtool: "nosources-source-map",
32
32
  output: {
33
- path: join(dir, config.buildDirectory),
33
+ path: resolveApp(dir, config.buildDirectory),
34
34
  chunkFilename: "./assets/js/[name].[fullhash:8].bundle.js",
35
35
  assetModuleFilename: "./assets/media/[name].[hash][ext]",
36
36
  filename: "./assets/js/[name].[fullhash:8].bundle.js",
@@ -131,8 +131,8 @@ export default {
131
131
  },
132
132
  plugins: [
133
133
  new HtmlWebpackPlugin({
134
- favicon: join(dir, `${config.publicDirectory}/favicon.png`),
135
- template: join(dir, `${config.publicDirectory}/index.html`),
134
+ favicon: join(dir, config.publicDirectory, "favicon.png"),
135
+ template: join(dir, config.publicDirectory, "index.html"),
136
136
  }),
137
137
  ],
138
138
  externals: {