mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
use a character class for brevity
add a comment so this madness has meaning Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
dd7f9e2d5f
commit
08fb20a0df
@ -47,17 +47,18 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
noParse: [
|
noParse: [
|
||||||
|
// for cross platform compatibility use [\\\/] as the path separator
|
||||||
|
// this ensures that the regex trips on both Windows and *nix
|
||||||
|
|
||||||
// don't parse the languages within highlight.js. They cause stack
|
// don't parse the languages within highlight.js. They cause stack
|
||||||
// overflows (https://github.com/webpack/webpack/issues/1721), and
|
// overflows (https://github.com/webpack/webpack/issues/1721), and
|
||||||
// there is no need for webpack to parse them - they can just be
|
// there is no need for webpack to parse them - they can just be
|
||||||
// included as-is.
|
// included as-is.
|
||||||
/highlight\.js\/lib\/languages/,
|
/highlight\.js[\\\/]lib[\\\/]languages/,
|
||||||
/highlight\.js\\lib\\languages/,
|
|
||||||
|
|
||||||
// olm takes ages for webpack to process, and it's already heavily
|
// olm takes ages for webpack to process, and it's already heavily
|
||||||
// optimised, so there is little to gain by us uglifying it.
|
// optimised, so there is little to gain by us uglifying it.
|
||||||
/olm\/(javascript\/)?olm\.js$/,
|
/olm[\\\/](javascript[\\\/])?olm\.js$/,
|
||||||
/olm\\(javascript\\)?olm\.js$/,
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
|
Loading…
Reference in New Issue
Block a user