Showing 1 – 1 of 1 replies
Daniel

Webpack config for packing

Daniel PURCHASED
1 year ago
Good morning,

Getting all sorts of font errors when trying to pack the assets myself via webpack. Do you have a sample webpack.config.js that will successfully pack the theme's assets?
WebAppLayers
WebAppLayers SELLER
1 year ago
Hi,

I will suggest to try url-loader for fonts files in your module object in config webpack:

{
test: /\.(eot|ttf|woff|woff2)(\?v=\d+\.\d+\.\d+)?$/,
loader: 'url-loader?limit=10000&mimetype=application/octet-stream'
}

Best regards, Damian