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
Thank you very much for your loader and work.
I've been quite surprised bundleing my application. I was finding a section of my applications that was not parsing correctly and I didn't know why. Actually, the hole data wasn't being displayed in some layout and i didn't know why.
Looking my application I realise that when compiling PUGS files with pug-loader and extract them with file-loader to JS files before rendering them with my app server, some mixins files where just an empty string ""
Example: mixins.pug --> mixins.js
.pug
mixin rightPart()
ul.nav.navbar-top-links.navbar-right
- var isAdmin = locals.loggedUser.admin;
- var userType = locals.loggedUser.userType;
- var userReadAlerts = (userType && userType.permissions.alerts.read) || isAdmin;
if userReadAlerts
li
#badge-container(ng-controller="navAlertsController" ng-cloak)
a.badge-link(href="/alerts")
span.badge {{activeAlerts.length}}
li
.dropdown
button.btn.btn-dropdown-header.dropdown-toggle(type="button", id="dropdownDashboardUser", data-toggle="dropdown", aria-expanded="false")
| {{loggedUser.name}} {{loggedUser.lastName}} {{' '}}
span.fa.arrow
ul.dropdown-menu.pull-right(role="menu" aria-labelledby="dropdownDashboardUser")
li(role="presentation")
.btn.np.bold(ng-click="logout()")=t("LOGOUT.TITLE")
The real weird thing is that in some cases mixins are compiled correctly for some .pug files. For others, no. I tried nto undestand why this was happening but I ended frustated trying to solve it.
webpack config laoder for pug files: (i tried several variants of the config, even just pug-loader and file-loader but still not working)
Hi there,
Thank you very much for your loader and work.
I've been quite surprised bundleing my application. I was finding a section of my applications that was not parsing correctly and I didn't know why. Actually, the hole data wasn't being displayed in some layout and i didn't know why.
Looking my application I realise that when compiling PUGS files with pug-loader and extract them with file-loader to JS files before rendering them with my app server, some mixins files where just an empty string ""
Example: mixins.pug --> mixins.js
.pug
.js
The real weird thing is that in some cases mixins are compiled correctly for some .pug files. For others, no. I tried nto undestand why this was happening but I ended frustated trying to solve it.
webpack config laoder for pug files: (i tried several variants of the config, even just pug-loader and file-loader but still not working)
Thanks for your help in advance.
The text was updated successfully, but these errors were encountered: