merge-jsons-webpack-plugin
merge-jsons-webpack-plugin copied to clipboard
Unable to merge json's
Not sure if am doing it right. I wrote this code in webpack.config.js 's plugin section
var MergeJsonWebpackPlugin = require("merge-jsons-webpack-plugin"); new MergeJsonWebpackPlugin({ "files": [ "./jsons/file1.json", "./jsons/file3.json", "./jsons/file2.json" ], "output": { "fileName": "./dist/result.json" } });
After that ran ionic serve but RESULT.json was never created with merged JSON data
P.S This is for Ionic4 project where we are trying to merge language JSON's using pattern
Is there any error ? I believe you do not need the initial ./ .can you try with relative path
Tried without ./ still not working. Screenshot of webpack.config.js
On Fri, 5 Oct 2018 at 9:25 PM, Sudharsan Tettu [email protected] wrote:
Is there any error ? I believe you do not need the initial ./ .can you try with relative path
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tettusud/merge-jsons-webpack-plugin/issues/43#issuecomment-427413793, or mute the thread https://github.com/notifications/unsubscribe-auth/ATEAXVdNhXk9lwydC2ypFvzZ8XIRcAufks5uh4DngaJpZM4XKUiU .
Is that possible to share your Webpack.config file
We just created Ionic 4 application with angular 6 We created webpack.config.js installed npm package merge-jsons-webpack-plugin ---> then added code to merge jsons in webpack.config.js
After that it never merged jsons
On Mon, Oct 8, 2018 at 2:17 PM Sudharsan Tettu [email protected] wrote:
Is that possible to share your Webpack.config file
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tettusud/merge-jsons-webpack-plugin/issues/43#issuecomment-427760674, or mute the thread https://github.com/notifications/unsubscribe-auth/ATEAXddE23QEYTSVjcwsrt2-V2CJWS-_ks5uixEYgaJpZM4XKUiU .
can you pass debug as true and capture the logs?
@tettusud Consider upgrading webpack-dev-server to 3.1.10 or later to support devServer.writeToDisk?