I'm on Mac, latest chrome using webpack 4 with the current webpack scss/css loaders (this is the before state of the required scss lit-element loaders etc...):
use: [MiniCssExtractPlugin.loader, "css-loader", 'postcss-loader', "sass-loader"]
I'm unable to successfully load scss into my lit-element component.
I have used the following examples and have failed:
https://github.com/drdreo/lit-scss-loader,
https://github.com/clicksolutions/lit-element-scss-loader,
https://blog.webf.zone/on-styling-web-components-b74b8c70c492
All of the above have failed.
Is there a way you can successfully load a scss file into a lit-element component at this stage as doing the inline way is very messy and I'm repeating my self a lot:
static get styles () {
return css`
.magic-class-name {
margin: 0;
}
.magic-class-name .magic-class-name2 .magic-class-name3 {
margin: 0;
} `
etc...
{ test: /\.css|\.s(c|a)ss$/, use: [{ loader: 'lit-scss-loader', options: { minify: true, // defaults to false }, }, 'extract-loader', 'css-loader', 'sass-loader'], },And the result is the web component does not render on page load and console does not have any errors at all which isn't helpful. So really just wondering if anyone has had success implementing scss and lit-element. - Kyle B