piral-ng 0.14.7-beta.3467 → 0.14.8-beta.3483
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 +5 -0
- package/extend-webpack.js +11 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -204,6 +204,10 @@ module.exports = (config) => {
|
|
|
204
204
|
test: /\.[jt]sx?$/,
|
|
205
205
|
loader: '@ngtools/webpack',
|
|
206
206
|
},
|
|
207
|
+
{
|
|
208
|
+
test: /\.component.html$/i,
|
|
209
|
+
use: ["to-string-loader", "html-loader?esModule=false"],
|
|
210
|
+
},
|
|
207
211
|
{
|
|
208
212
|
test: /\.component.css$/i,
|
|
209
213
|
use: ["to-string-loader", "css-loader?esModule=false"],
|
|
@@ -337,6 +341,7 @@ For using `piral-ng/extend-webpack` you must have installed:
|
|
|
337
341
|
- `copy-webpack-plugin`
|
|
338
342
|
- `@ngtools/webpack`
|
|
339
343
|
- `to-string-loader`
|
|
344
|
+
- `html-loader`
|
|
340
345
|
- `webpack`, e.g., via `piral-cli-webpack5`
|
|
341
346
|
|
|
342
347
|
You can do that via:
|
package/extend-webpack.js
CHANGED
|
@@ -7,6 +7,7 @@ const ngtoolsLoader = require.resolve('@ngtools/webpack');
|
|
|
7
7
|
const toStringLoader = require.resolve('to-string-loader');
|
|
8
8
|
const cssLoader = require.resolve('css-loader');
|
|
9
9
|
const sassLoader = require.resolve('sass-loader');
|
|
10
|
+
const htmlLoader = require.resolve('html-loader');
|
|
10
11
|
|
|
11
12
|
module.exports =
|
|
12
13
|
(options = {}) =>
|
|
@@ -17,6 +18,12 @@ module.exports =
|
|
|
17
18
|
compilerOptions = {},
|
|
18
19
|
} = options;
|
|
19
20
|
const cssLoaderNoModule = `${cssLoader}?esModule=false`;
|
|
21
|
+
const htmlLoaderNoModule = {
|
|
22
|
+
loader: htmlLoader,
|
|
23
|
+
options: {
|
|
24
|
+
esModule: false,
|
|
25
|
+
},
|
|
26
|
+
};
|
|
20
27
|
|
|
21
28
|
config.module.rules
|
|
22
29
|
.filter((m) => m.test.toString() === /\.css$/i.toString())
|
|
@@ -39,6 +46,10 @@ module.exports =
|
|
|
39
46
|
test: /\.[jt]sx?$/,
|
|
40
47
|
loader: ngtoolsLoader,
|
|
41
48
|
},
|
|
49
|
+
{
|
|
50
|
+
test: /\.component.html$/i,
|
|
51
|
+
use: [toStringLoader, htmlLoaderNoModule],
|
|
52
|
+
},
|
|
42
53
|
{
|
|
43
54
|
test: /\.component.css$/i,
|
|
44
55
|
use: [toStringLoader, cssLoaderNoModule],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "piral-ng",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.8-beta.3483",
|
|
4
4
|
"description": "Plugin for integrating Angular components in Piral.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"piral",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@angular/platform-browser": "^8.0.0",
|
|
53
53
|
"@angular/platform-browser-dynamic": "^8.0.0",
|
|
54
54
|
"@angular/router": "^8.0.0",
|
|
55
|
-
"piral-core": "0.14.
|
|
55
|
+
"piral-core": "0.14.8-beta.3483",
|
|
56
56
|
"rxjs": "^7.3.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"rxjs": "^5.0.0 || ^6.0.0 || ^7.0.0",
|
|
67
67
|
"zone.js": "~0.9.0 || ~0.10.0 || ~0.11.0"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "a35bd0eb547a18a708af0df85f66a21aa76bdb76"
|
|
70
70
|
}
|