Mendix Pluggable Web Widget External CSS Loader

0
Hi, Building my pluggable web widget is throwing below error when I try to import a css file that is part of the NPM module installed into my widget project ERROR in ./node_modules/@solidedge/skylight/dist/skylight-modeler.css (./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/@solidedge/skylight/dist/skylight-modeler.css)     Module build failed (from ./node_modules/sass-loader/dist/cjs.js):     SassError: @use rules must be written before any other rules.   When I checked with corresponding team who developed this module, they said I need to install a css-loader and use webpack.config.js to load this loader. Below is the code shared with me: module: {       rules: [          {             test: /\.css$/,             use: ['style-loader', 'css-loader'],          }     ]    } I am not sure how to do this with the widget and also I don’t see any webpack.config.js file in project root directory. How can I make this work for pluggable widget?
asked
0 answers