Webpack error in win95.scss when updating to v2.8 #9

Closed
opened 2019-05-04 20:20:48 +02:00 by nolanlawson · 1 comment

Hey, just a heads-up that you'll need to add this patch if you're upgrading to Mastodon 2.8:

--- a/config/webpacker.yml
+++ b/config/webpacker.yml
@@ -31,6 +31,7 @@ default: &default
     - .ttf
     - .woff
     - .woff2
+    - .gif
 
   extensions:
     - .mjs

Otherwise you'll get an error due to clippy.gif in win95.scss (because apparently Webpack isn't configured to handle gifs):

11:01:32 webpack.1 | WARNING in ./app/javascript/images/clippy_wave.gif 1:7
11:01:32 webpack.1 | Module parse failed: Unexpected character '' (1:7)
11:01:32 webpack.1 | You may need an appropriate loader to handle this file type.
11:01:32 webpack.1 | (Source code omitted for this binary file)
11:01:32 webpack.1 |
11:01:32 webpack.1 | ERROR in ./app/javascript/styles/win95.scss
11:01:32 webpack.1 | Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
11:01:32 webpack.1 | ModuleParseError: Module parse failed: Unexpected character '' (1:7)
11:01:32 webpack.1 | You may need an appropriate loader to handle this file type.
1
Hey, just a heads-up that you'll need to add this patch if you're upgrading to Mastodon 2.8: ```diff --- a/config/webpacker.yml +++ b/config/webpacker.yml @@ -31,6 +31,7 @@ default: &default - .ttf - .woff - .woff2 + - .gif extensions: - .mjs ``` Otherwise you'll get an error due to clippy.gif in win95.scss (because apparently Webpack isn't configured to handle gifs): ``` 11:01:32 webpack.1 | WARNING in ./app/javascript/images/clippy_wave.gif 1:7 11:01:32 webpack.1 | Module parse failed: Unexpected character '' (1:7) 11:01:32 webpack.1 | You may need an appropriate loader to handle this file type. 11:01:32 webpack.1 | (Source code omitted for this binary file) 11:01:32 webpack.1 | 11:01:32 webpack.1 | ERROR in ./app/javascript/styles/win95.scss 11:01:32 webpack.1 | Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js): 11:01:32 webpack.1 | ModuleParseError: Module parse failed: Unexpected character '' (1:7) 11:01:32 webpack.1 | You may need an appropriate loader to handle this file type. 1 ```
Owner

Closed as I have applied the fix

Closed as I have applied the fix
chr closed this issue 2019-05-23 02:35:19 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: cybrespace/mastodon#9
No description provided.