@unsetsoft/ryunixjs 0.2.37-nightly.10 → 0.2.37-nightly.11

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.2.37-nightly.10",
3
+ "version": "0.2.37-nightly.11",
4
4
  "license": "MIT",
5
5
  "main": "./dist/Ryunix.js",
6
6
  "private": false,
package/utils/config.cjs CHANGED
@@ -3,6 +3,7 @@ console.log(config);
3
3
  const defaultSettings = {
4
4
  buildDirectory: config?.buildDirectory ? config.buildDirectory : ".ryunix",
5
5
  appDirectory: config?.appDirectory ? config.appDirectory : "src",
6
+ publicDirectory: config?.publicDirectory ? config.publicDirectory : "public",
6
7
  };
7
8
 
8
9
  module.exports = defaultSettings;
@@ -27,11 +27,11 @@ console.log(config);
27
27
 
28
28
  export default {
29
29
  mode: "production",
30
- context: resolve(dir, config.appDirectory),
30
+ context: resolveApp(dir, config.appDirectory),
31
31
  entry: "./main.ryx",
32
32
  devtool: "nosources-source-map",
33
33
  output: {
34
- path: join(dir, config.buildDirectory),
34
+ path: resolveApp(dir, config.buildDirectory),
35
35
  chunkFilename: "./assets/js/[name].[fullhash:8].bundle.js",
36
36
  assetModuleFilename: "./assets/media/[name].[hash][ext]",
37
37
  filename: "./assets/js/[name].[fullhash:8].bundle.js",
@@ -132,8 +132,8 @@ export default {
132
132
  },
133
133
  plugins: [
134
134
  new HtmlWebpackPlugin({
135
- favicon: join(dir, "public", "favicon.ico"),
136
- template: join(dir, "public", "index.html"),
135
+ favicon: resolveApp(dir, `${config.publicDirectory}/favicon.ico`),
136
+ template: resolveApp(dir, `${config.publicDirectory}/index.html`),
137
137
  }),
138
138
  ],
139
139
  externals: {