about index.html
inject some JS and CSS codes
there are some JS codes, such as responsive and buried point reporting codes, which are directly written into index.html
requirements:
1. Different codes are injected according to the environment, such as
2 is injected in the production environment, and the code is compressed in the production environment
what methods have you tried
1. In the webpack3
environment, using asset-inject-html-webpack-plugin
2 and html-webpack-inline-source-plugin
will inline all the code
ask for help
is there a feasible solution to the problem of index.html
inline code