anu-verzum 2.0.0 → 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 +12 -1
- package/package.json +1 -1
- package/webpack.config.js +2 -1
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>2.
|
|
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