tettusud / merge-jsons-webpack-plugin

This plugin is used to merge json files into single json file,using glob or file names
https://npmjs.com/package/merge-jsons-webpack-plugin
Apache License 2.0
36 stars 20 forks source link

Unable to merge json's #43

Open DeepiManjoo opened 5 years ago

DeepiManjoo commented 5 years ago

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

tettusud commented 5 years ago

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

DeepiManjoo commented 5 years ago

Tried without ./ still not working. Screenshot of webpack.config.js

On Fri, 5 Oct 2018 at 9:25 PM, Sudharsan Tettu notifications@github.com 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 .

tettusud commented 5 years ago

Is that possible to share your Webpack.config file

DeepiManjoo commented 5 years ago

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 notifications@github.com 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 .

tettusud commented 5 years ago

can you pass debug as true and capture the logs?

lmislm commented 5 years ago

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