Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to merge json's #43

Open
DeepiManjoo opened this issue Oct 5, 2018 · 6 comments
Open

Unable to merge json's #43

DeepiManjoo opened this issue Oct 5, 2018 · 6 comments

Comments

@DeepiManjoo
Copy link

DeepiManjoo commented Oct 5, 2018

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
Copy link
Owner

tettusud commented Oct 5, 2018

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

@DeepiManjoo
Copy link
Author

DeepiManjoo commented Oct 8, 2018 via email

@tettusud
Copy link
Owner

tettusud commented Oct 8, 2018

Is that possible to share your Webpack.config file

@DeepiManjoo
Copy link
Author

DeepiManjoo commented Oct 11, 2018 via email

@tettusud
Copy link
Owner

can you pass debug as true and capture the logs?

@lmislm
Copy link

lmislm commented May 15, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants