@ismcagdas - can you provide a litttle more detail about how this angular.json file works please
Some more questions:
Currently some of our LESS files are being compiled, but it is only those that belong to a particular component. They seem to get injected into the page using a <style> tag.
I've never worked with angular before, so I'm unclear on how it is supposed to work.
Hi I am trying to get the compilation of the LESS files working in v 6.7 Angular using the Gulp file. The only example I’ve seen so far appears to be for the MVC version. Does anyone have a working version for Angular? Ideally a gulpfile that compiles the Metronic files too…but even the LESS files would be a good start.
Also - can you please confirm if we need a package-mapping-config.js file for the Angular version.
Hey kasem, I asked the same question recently:
https://support.aspnetzero.com/QA/Questions/6463
It seems that Metronic files are not compiled (even though they are included).
Do you also find it confusing, that...when you save a Sass file, it triggers the build process, even though its not compiling. It tricks you into thinking the Sass is compiled. I don't know why they've done that!
@ismcagdas
Never mind. No long an issue here. Probably some enviornmental or configuration issue on Azure.
@ismcagdas I was going to rasie a new ticket around this.
We did the 6.7 upgrade. Tested OK on local envrionment. However, when connect to the database on the Azure, we keep getting the SecurityTokenException. The page stays on white screen in this case.
We tried to create a new database on Azure and used the blank 6.7 template. Gets the same issue.
However, on database in our local SQL serverm, it works fine.
We have to hold the 6.7 upgrade and much appreicated if you can help, thank!
We just upgrade from 5.6 to 6.7 and are having the same issue.
ismcagdas - that link isn't working. can you confirm the correct one, as I'd be intersted to see that gulpfile. Cheers Jared
Hi ismcagdas
I am wanting to use VS Code on a Mac.
some of the LESS files are in fact compiling (using VS Code on Mac). These seem to be the ones that end up getting injected into the page using a <style> tag.
The ones that are not working seem to be the LESS files listed in our compilerconfig.json. So is this issue caused by the fact that I am not using the WebCompiler on Visual Studio (on Windows) ?
What are my options if I want to work on a Mac?
HI @maliming thanks for the link. I had seen that page. With regards to Gulp - our project is not using it. I'm wondering if we need to be. But I think webpack is in there also (so perhpas both are not needed?) theres only a brief mention of Gulp in the docs, and no example gulpfile.js is provided.
Hello
Can anyone point me to any documents/resources on the how the compiling for LESS/Sass works? There doenst seem to be much info in the Docs.
It doesn’t seem to work as expected: many of the LESS files do not compile at all, although it appears that they are being ‘watched’, because whenever I save a file it always triggers a compile.
Things I have not figured out yet:
Is the Metronic Sass files supposed to compile (into style.bundle.css?) upon save?
The files listed in the compilerconfig.json do are not compiling at all. For example: { "outputFile": "src/assets/primeng/datatable/css/primeng.datatable.css", "inputFile" : "src/assets/primeng/datatable/css/primeng.datatable.less" },
The LESS files that are related to a specific component, and that get injected into the page as a <style> tag DO however work, and compile correctly.
The angular-cli.json nor the angular.json don't seem to do anything.
Thanks