pestle
pestle copied to clipboard
New Feature Request - M2 empty JS module generating
New Feature Request - M2 empty JS module generating
It's not clear what this means. What's an empty JS module?
An empty JS module is
- layout(cms_index_index / or could be prompted)->block (type of template)->template with html tag which have attr data-magento-init="{module:{config1}}"
- view/frontend/requirejs-config.js
- view/frontend/web/js/module.js
define([ 'jquery' ], function($) { "use sctrict"; console.log(An empty JS module is ready to use!); } });
and command who generates it
pestle magento2:generate:js