Open DavidPezzoli opened 3 years ago
Hi! Sorry for the delay in answer. Could share a print of your folder structure?
Hi can you share your manifest file and The build log?
Hi! I got the same error, that the css file could not be found, so I created an empty file with that name in that location and am able to successfully build but nothing gets generated in the css file.
Here's my manifest:
Folder structure:
The error I was getting before I added the file:
Hi @hvu-hsl , isn't your file named scss instead of css?
Hi @hvu-hsl , isn't your file named scss instead of css?
What do you mean? Yes, I have an scss file and a css file of the same name is supposed to be generated but it's not.
Hi Michael, I read your article and I followed step-by-step your procedure. My goal is reference all the semantic.css library in my PCF by Sass as suggested by Microsoft.
Here the details, in "PCFfolder" I added: "index.ts" "SemanticControl.tsx" "ControlManifest.Input.xml" (with the line:
<css path="css/semanticUI.css" order="1"/>
) and a subfolder: css with a file: "semanticUI.scss"The "semanticUI.scss" contains the one import line:
After npm installation of "pcf-sass-loader", I modified the /node_modules/pcf-scripts/webpackconfig.js like this:
When i prompt
npm run build
from the PCFfolder path, for my opinion the webpack pcf-sass-loader can't find the "semanticUI.scss" and are not able to convert it to .css file..... PCF CLI give me a red error message:Failed: [pcf-1011] [Error] Resource file ...\PCFfolder\css\semanticUI.css not found.
and I can't test my PCF Control.So, I think, is your procedure right? Because I don't know where I'm wrong.... and on Web there aren't other solutions for Sass preprocessor in PCF.
Thanks!