Rebolon/php-sf-flex-webpack-encore-vuejs

angular: build prod generate versionned file, how to include them in sf template ? can we generate a manifest.json file ?

Rebolon opened this issue · 2 comments

angular: build prod generate versionned file, how to include them in sf template ? can we generate a manifest.json file ?

maybe a twig helper that will look at wished file:

<script type="text/javascript" src="/dist-ng/devxpress/runtime.js"></script>
    <script type="text/javascript" src="/dist-ng/devxpress/polyfills.js"></script><!-- generate Zone already loaded. Error -->
    <script type="text/javascript" src="/dist-ng/devxpress/vendor.js"></script><!-- not in prod, only dev -->
    <script type="text/javascript" src="/dist-ng/devxpress/main.js"></script>

Or parse index.html files after ng build and put it into the required template. It will use prod versions or other using env

fix #122