【发布时间】:2015-08-14 06:09:27
【问题描述】:
我见过不同的例子,比如这两个:
An example showing the "-loader" postfix after the style and css loaders,
Another including the loaders without the "-loader" postfix.
我已经对其进行了测试,它似乎在这两种情况下都有效。 webpack 会测试并包含它吗?
【问题讨论】:
标签: webpack
我见过不同的例子,比如这两个:
An example showing the "-loader" postfix after the style and css loaders,
Another including the loaders without the "-loader" postfix.
我已经对其进行了测试,它似乎在这两种情况下都有效。 webpack 会测试并包含它吗?
【问题讨论】:
标签: webpack
这没什么区别。
过去这是有问题的。如果您同时安装了css 和css-loader,则在使用loader: 'css' 类型的定义时可能无法加载。这似乎不再是问题了。
resolveLoader.moduleTemplates 可用于在需要时详细控制此行为。
【讨论】: