![]() Npm i css-loader style-loader – -save-devĪfter this, now we can use the external CSS file in our PCF Control Project. After updating above file, run below command in “VS2019” command prompt:.Under “getWebpackConfig” function add above content as show below: In the “WebpackConfig.js” file, add below content:.Go to, nodemodules > PCFscript > webpackConfig.js.To resolve the above issue please follow below steps: quickly adjust the model to the correct settings. ![]() If the PCF file is poorly written then one can still import that file into AutoPIPE and with the power of AutoPIPE's input grids, selection tools, etc. Now, to use the CSS from custom file, I have added the Custom “style.css” file as shown below:īut, when I run build command in VS2019 command prompt, then I get error as “ You may need an appropriate loader to handle this file type.” Solution As you know, the imported information is only as good as the information contained in the PCF file. I have a created a below PCF control project, and I want to use the custom CSS from “CSS file” in same project. If we directly add the CSS file in project and after running the build command, we get below error:įor e.g. Now, in this blog, we will see how we can configure custom “.CSS” file in React PCF Control Project. In the previous blog, we have seen the how-to setup the react in PCF control.
0 Comments
Leave a Reply. |