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

How do you actually generate the manifest.json file?? #47

Open
RandallJEllis opened this issue Oct 24, 2018 · 4 comments
Open

How do you actually generate the manifest.json file?? #47

RandallJEllis opened this issue Oct 24, 2018 · 4 comments

Comments

@RandallJEllis
Copy link

Hello,

I'm new to Flask and web development generally, but from the readme, I'm not understanding how to actually generate the manifest.json file. For example, the Quickstart code -- where do you put that? In package.json? The webpack.config.js file? And whichever file you put it in, how do you run that file and generate the manifest.json file? A clearer explanation would be greatly appreciated, but I also apologize if this is plainly obvious and I'm just a n00b

@nickjj
Copy link
Owner

nickjj commented Oct 24, 2018

Hi,

This plugin would create the manifest.json for you at whatever location you supplied to the output path in your webpack config. Then Flask-Webpack would read in that manifest file.

There is a full example Flask project located at https://github.com/nickjj/flask-webpack/tree/master/flask_webpack/tests/test_app. Let me know if that helps.

@RandallJEllis
Copy link
Author

Ok, how do you actually run the plugin and generate the file though? Is it "npx webpack" ?

@nickjj
Copy link
Owner

nickjj commented Oct 26, 2018

You would run webpack as usual.

If you follow the Flask example app project then:

npm start would run the watcher in development.
npm build would build production assets.

Those commands work because they are defined in package.json at https://github.com/nickjj/flask-webpack/blob/master/flask_webpack/tests/test_app/package.json#L2.

@germn
Copy link

germn commented Nov 4, 2018

@RandallJEllis hi, this article helped me a lot to figure out how nodejs infrastructure works. May be it'll help you also.

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