Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Assets from CSS not loading in dev mode #7

Closed
arturi opened this issue Jan 24, 2017 · 0 comments
Closed

Assets from CSS not loading in dev mode #7

arturi opened this issue Jan 24, 2017 · 0 comments

Comments

@arturi
Copy link
Collaborator

arturi commented Jan 24, 2017

Hey! So I tracked down the issue with missing font-awesome and also all other assets from css when using Lanyon in dev/hot mode. It’s because of a bug in sourcemaps here:

loader: `style!css?sourceMap!sass?sourceMap!resolve-url?root=${runtime.projectDir}`,
. When you remove sourcemaps and convert that line into loader: 'style!css!sass?sourceMap!resolve-url?root=${runtime.projectDir}', everything starts working.

It is a known issue webpack-contrib/css-loader#232 and could potentially be solved by adding an absolute url to config.output.publicPath (could be only added for dev, keeping relative urls for prod), like 'http://localhost:3000', though I got a bit confused about where which path goes in the config. Solved for myself by removing sourcemaps for now.

@arturi arturi closed this as completed Jun 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant