canvasframework 0.5.19 → 0.5.20

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/README.md +30 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -18,6 +18,36 @@
18
18
  "build": "vite build"
19
19
  }
20
20
 
21
+ # Configure webpack and babel
22
+
23
+ ```
24
+ // webpack.config.cjs
25
+ const path = require('path');
26
+
27
+ module.exports = {
28
+ entry: './src/main.js',
29
+ output: {
30
+ filename: 'bundle.js',
31
+ path: path.resolve(__dirname, 'www')
32
+ },
33
+ mode: 'development',
34
+ module: {
35
+ rules: [
36
+ {
37
+ test: /\.js$/,
38
+ exclude: /node_modules/,
39
+ use: 'babel-loader'
40
+ }
41
+ ]
42
+ },
43
+ devServer: {
44
+ static: './www',
45
+ hot: true
46
+ }
47
+ };
48
+ ```
49
+ ---
50
+
21
51
  # launch
22
52
  npm run dev
23
53
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvasframework",
3
- "version": "0.5.19",
3
+ "version": "0.5.20",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/beyons/CanvasFramework.git"