anu-verzum 1.23.9 → 2.1.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/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  <h3>@author: <strong>Anubis-programmer</strong></h3>
6
6
  <h3>@license: <strong>MIT</strong></h3>
7
- <h3>@version: <strong>1.23.9</strong></h3>
7
+ <h3>@version: <strong>2.1.0</strong></h3>
8
8
 
9
9
  <br>
10
10
 
@@ -88,6 +88,17 @@ module.exports = require('anu-verzum/webpack.config')(__dirname, {
88
88
  });
89
89
  ```
90
90
 
91
+ Use `rules` to append additional webpack module rules after the built-in `babel-loader` rule. This is how you wire up CSS, LESS, images, or any other asset type:
92
+
93
+ ```js
94
+ module.exports = require('anu-verzum/webpack.config')(__dirname, {
95
+ rules: [
96
+ { test: /\.css$/, use: ['style-loader', 'css-loader'] },
97
+ { test: /\.less$/, use: ['style-loader', 'css-loader', 'less-loader'] }
98
+ ]
99
+ });
100
+ ```
101
+
91
102
  <h3 id="importing-in-your-files">Importing in your files</h3>
92
103
 
93
104
  Every file that contains JSX must import `Anu`, because the JSX transform expands to `Anu.createElement(...)` calls at compile time:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anu-verzum",
3
- "version": "1.23.9",
3
+ "version": "2.1.0",
4
4
  "description": "A \"React-like\" UI library that supports JSX syntax, Redux-like state management, array-rendering, i18n, routing and many more.",
5
5
  "keywords": [
6
6
  "anu-verzum",
package/webpack.config.js CHANGED
@@ -17,7 +17,8 @@ module.exports = (projectRoot, options = {}) => ({
17
17
  test: /\.[jt]sx?$/,
18
18
  exclude: /node_modules/,
19
19
  use: 'babel-loader'
20
- }
20
+ },
21
+ ...(options.rules ?? [])
21
22
  ]
22
23
  },
23
24
  resolve: {