You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tested using latest version with command cookiecutter https://github.com/cookiecutter-flask/cookiecutter-flask/.
the problem is when add an image in assets folder, then execute npm run build, I can find that compiled in webpack/manifest.json. As a result, asset_url_for('img path') in jinjia template and cannot find its path.
after dive into ManifestRevisionPlugin, I found that it will prevent from add from stat into json file when the length of reason property is not 0. the reason text prompt optimizationBailout: [ 'ModuleConcatenation bailout: Module is not an ECMAScript module' ]
@brightgems , if you are still facing this problem, it looks like its happening because of a change in webpack 4. Following this comment nickjj/manifest-revision-webpack-plugin#49 (comment) I was able to get it working. Namely adding the extensionsRegex: /\.(jpe?g|png|gif|svg)$/i, to your ManifestRevisionPlugin
Tested using latest version with command
cookiecutter https://github.com/cookiecutter-flask/cookiecutter-flask/
.the problem is when add an image in assets folder, then execute
npm run build
, I can find that compiled in webpack/manifest.json. As a result, asset_url_for('img path') in jinjia template and cannot find its path.after dive into ManifestRevisionPlugin, I found that it will prevent from add from stat into json file when the length of reason property is not 0. the reason text prompt
optimizationBailout: [ 'ModuleConcatenation bailout: Module is not an ECMAScript module' ]
below is stat text.
The text was updated successfully, but these errors were encountered: