manifest-revision-webpack-plugin icon indicating copy to clipboard operation
manifest-revision-webpack-plugin copied to clipboard

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

Open RandallJEllis opened this issue 6 years ago • 4 comments

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

RandallJEllis avatar Oct 24 '18 03:10 RandallJEllis

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.

nickjj avatar Oct 24 '18 10:10 nickjj

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

RandallJEllis avatar Oct 26 '18 14:10 RandallJEllis

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.

nickjj avatar Oct 26 '18 15:10 nickjj

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

germn avatar Nov 04 '18 09:11 germn