Skip to content
Advertisement

Tag: external

Exclude var and json file from webpack build

I’m trying to exclude but retain external reference to a few JSON files from a webpack build. I’ve modified the webpack.config.js to include: This solved some previous errors, but now it seems that the ‘font’ var is being considered undefined. The error is referring to this line in the build, where webpack has exported the ‘font’ var as a module.export:

Advertisement