Open raythree opened 8 years ago
You can try my webpack config in example
directory here : https://github.com/vn38minhtran/react-notifications/blob/master/example/webpack.config.js#L109
How I fixed: I used file loader, to move font files to public path. With my configuration, no public path, a fonts folder is created, and the font files are stored inside him. So, the publicPath parameter says to use app base path as reference, working well
{
test: /\.(ttf|eot|svg|woff(2)?)(\S+)?$/,
loader: 'file-loader?publicPath=/&name=fonts/[name].[ext]'
}
Hi, using webpack to load the css as document and getting this error:
For my webpack config I have:
Any suggestions? Thanks.