From 16658815caa2fcc02207aa9e0480cdf8cdbe3b57 Mon Sep 17 00:00:00 2001 From: Nathan Reid Date: Mon, 22 Jan 2018 17:55:43 -0600 Subject: [PATCH] js files should also be lazy loaded when applicable --- css-modules-build-plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/css-modules-build-plugin.js b/css-modules-build-plugin.js index 55a7a86..ab2aee7 100644 --- a/css-modules-build-plugin.js +++ b/css-modules-build-plugin.js @@ -279,7 +279,7 @@ export default class CssModulesBuildPlugin extends MultiFileCachingCompiler { path: getOutputPath(result.filePath, pluginOptions.outputCssFilePath) + '.css', sourcePath: getOutputPath(result.filePath, pluginOptions.outputCssFilePath) + '.css', sourceMap: JSON.stringify(result.sourceMap), - lazy: false + lazy: result.isLazy }); }