This repository has been archived by the owner on Sep 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed:
SyntaxError: Unexpected token
when importing CSS from ``no…
…de_modules`` Previously, ``node_modules/*`` where skipped in webpack static build, to improve performance (via webpack ``externals`` option). The problem is that is going to cause some issue for most people that will require stuff from ``node_modules`` like CSS, SVG or other non-JS files. Closes #639 Ref #649
- Loading branch information
Showing
2 changed files
with
21 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,13 @@ | |
from react-router-scroll (as we only use this). | ||
``[email protected]`` was exporting a default value, ``0.3.2`` is not. | ||
([#627](https://github.com/MoOx/phenomic/issues/652) - @MoOx) | ||
- Fixed: ``SyntaxError: Unexpected token`` when importing CSS from | ||
``node_modules``. | ||
Previously, ``node_modules/*`` where skipped in webpack static build, | ||
to improve performance (via webpack ``externals`` option). | ||
The problem is that is going to cause some issue for most people that will | ||
require stuff from ``node_modules`` like CSS, SVG or other non-JS files. | ||
([#639](https://github.com/MoOx/phenomic/issues/639) - @MoOx) | ||
- Added: better webpack build notifications. | ||
We replaced | ||
[`webpack-error-notifications`](https://github.com/vsolovyov/webpack-error-notification) | ||
|
@@ -50,9 +57,11 @@ you can filter projects by tags. | |
- Changed: default markdown renderer updated to | ||
``remark-autolink-headings@^4.0.0``. | ||
This might fix issue with missing links for headings. | ||
(@MoOx) | ||
- Changed: default markdown renderer updated to | ||
``remark-highlight.js@^4.0.0`` | ||
This might fix issue with broken highlighted code. | ||
(@MoOx) | ||
- Changed: ``phenomic/lib/content-loader`` reference is deprecated in favor of | ||
``import { phenomicLoader } from "phenomic"``. | ||
You can use ``phenomicLoader`` variable in webpack configuration to reference | ||
|
@@ -61,6 +70,7 @@ you can filter projects by tags. | |
(@MoOx) | ||
- Changed: loader will now read loader configuration directly from ``phenomic`` | ||
section, not in `phenomic.loader` or `phenomic.contentLoader` | ||
(@MoOx) | ||
- Removed: `renderer` option from `content-loader` (now `phenomicLoader`). | ||
See the new `plugins` option below for more information. | ||
If you want to do the same effect, you can use the following plugins | ||
|
@@ -93,6 +103,7 @@ you can filter projects by tags. | |
] | ||
} | ||
``` | ||
(@MoOx) | ||
- Removed: `raw` and `rawBody` properties from page data. | ||
If you want those back, there are plugins ready for you: | ||
```js | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5682683
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo :
s/defautlExternals/defaultExternals
5682683
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks :)