-
Notifications
You must be signed in to change notification settings - Fork 919
Closed
Description
There will be some error while load(file-loader) font files with relative path.
Config.
{
test: /\.(ttf|eot|svg|woff(2)?)(\?.*)?$/,
loader: 'file-loader'
}
Error.
Failed to decode downloaded font: http://localhost:3000/
OTS parsing error: invalid version tag
Info.
webpack/css-loader
SourceMaps
To include SourceMaps set the sourceMap query param.
require("css-loader?sourceMap!./file.css")
I. e. the extract-text-webpack-plugin can handle them.
They are not enabled by default because they expose a runtime overhead and increase in bundle size (JS SourceMap do not). In addition to that relative paths are buggy and you need to use an absolute public path which include the server url.
if (this.sourceMap) {
defaultLoaders.css = 'style-loader!css-loader?sourceMap'
}
Metadata
Metadata
Assignees
Labels
No labels