Tell webpack not to parse the highlight.js languages

Hopefully, this fixes
without any side-effects.

It relies on the fact that the languages files are pretty simple - in
particular, they don't require any other modules. So we can tell webpack just
to suck them in as they are, rather than parsing them and causing an explosm.
Richard van der Hoff 6 years ago
parent 2462ede539
commit c5c5e6d811
  1. 9

@ -14,7 +14,14 @@ module.exports = {
{ test: /\.js$/, loader: "babel", include: path.resolve('./src') },
// css-raw-loader loads CSS but doesn't try to treat url()s as require()s
{ test: /\.css$/, loader: ExtractTextPlugin.extract("css-raw-loader") },
noParse: [
// don't parse the languages within highlight.js. They cause stack
// overflows (, and
// there is no need for webpack to parse them - they can just be
// included as-is.
output: {
devtoolModuleFilenameTemplate: function(info) {