0
我有一個情況,我想所有的手寫筆文件使用的WebPack裝載機使用特定的裝載機特定的文件...如何使用的WebPack
{
test: /\.styl$/,
loaders: ["to-string", "css", "stylus"]
},
,但對全球的樣式文件(那些在.global.styl
結束),我想用一組不同的裝載機...
loaders: ["style", "css", "stylus"]
我嘗試以下...
{
test: /.*(?<!global)\.styl$/,
loaders: ["to-string", "css", "stylus"]
},
但它沒有工作......
SyntaxError: Invalid regular expression: /.*(?<!global)\.styl$/: Invalid group