merge-jsons-webpack-plugin icon indicating copy to clipboard operation
merge-jsons-webpack-plugin copied to clipboard

Unable to merge json's

Open DeepiManjoo opened this issue 6 years ago • 6 comments

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

DeepiManjoo avatar Oct 05 '18 14:10 DeepiManjoo

Is there any error ? I believe you do not need the initial ./ .can you try with relative path

tettusud avatar Oct 05 '18 15:10 tettusud

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 .

DeepiManjoo avatar Oct 08 '18 06:10 DeepiManjoo

Is that possible to share your Webpack.config file

tettusud avatar Oct 08 '18 08:10 tettusud

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 .

DeepiManjoo avatar Oct 11 '18 12:10 DeepiManjoo

can you pass debug as true and capture the logs?

tettusud avatar Oct 11 '18 12:10 tettusud

@tettusud Consider upgrading webpack-dev-server to 3.1.10 or later to support devServer.writeToDisk?

lmislm avatar May 15 '19 12:05 lmislm