manifest-revision-webpack-plugin
manifest-revision-webpack-plugin copied to clipboard
How do you actually generate the manifest.json file??
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
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.
Ok, how do you actually run the plugin and generate the file though? Is it "npx webpack" ?
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.
@RandallJEllis hi, this article helped me a lot to figure out how nodejs infrastructure works. May be it'll help you also.