diff --git a/lib/loader.js b/lib/loader.js index 3cc485045..ac16b2667 100644 --- a/lib/loader.js +++ b/lib/loader.js @@ -149,12 +149,12 @@ module.exports = function (content) { // unknown lang, infer the loader to be used switch (type) { case 'template': - return defaultLoaders.html + '!' + templateLoaderPath + '?raw&engine=' + lang + '!' + return defaultLoaders.html + '!' + templateLoaderPath + '?raw-loader&engine=' + lang + '!' case 'styles': loader = addCssModulesToLoader(defaultLoaders.css, part, index) - return loader + '!' + rewriter + lang + '!' + return loader + '!' + rewriter + lang + '-loader!' case 'script': - return injectString + lang + '!' + return injectString + lang + '-loader!' } } }