Currently utilizing Webpack's module.loaders
and file-loader
to duplicate multiple js-files during compilation:
module.loaders = [
{ test: /app\/locale\/moment\/.*\.js$/, loader: "file-loader?name=locale/moment/[name].[ext]" }
];
Successfully achieving the desired result with js-files.
Now aiming to replicate the same process with JSON files:
module.loaders = [
{ test: /app\/locale\/.*\.json$/, loader: "file-loader?name=locale/[name].[ext]" }
];
Encountering issues this time around.
Curious as to why Webpack treats js and json files differently when utilizing the file-loader?