- Issue created by @omarlopesino
- πͺπΈSpain omarlopesino
I've made a merge request that:
- Compiles any asset from a component's src folder into the component. For example: web/components/chart-element/src/chart-element.ts -> web/components/chart-element/chart-element.js
- Only replaces assets at library info alter when the dev mode is enabled.
Please review, thanks!
- πͺπΈSpain omarlopesino
I've added changes so that the build:watch command works properly. Now it is needed an additional plugin.
alejandro cabarcos β made their first commit to this issueβs fork.
-
alejandro cabarcos β
committed 84f332f6 on 2.x authored by
omarlopesino β
Issue #3528766 by omarlopesino: Compile component assets into components...
-
alejandro cabarcos β
committed 84f332f6 on 2.x authored by
omarlopesino β
Thanks Omar,
I've tested on a drupal from scratch applying the patch and both
build
andbuild:watch
tasks works as expected.main.css --> dist/main.css
components/my-component/src/my-component.css --> components/my-component/my-component.cssAfter creating a new SDC,
build
task must be run as it the task that moves files, after thatbuild:watch
does fine.Automatically closed - issue fixed for 2 weeks with no activity.