
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@stencil/sass
Advanced tools
This package is used to easily precompile Sass files within the Stencil components.
First, npm install within the project:
npm install @stencil/sass --save-dev
Next, within the project's stencil.config.js
file, import the plugin and add it to the config's plugins
config:
import { Config } from '@stencil/core';
import { sass } from '@stencil/sass';
export const config: Config = {
plugins: [
sass()
]
};
During development, this plugin will kick-in for .scss
or .sass
style urls, and precompile them to CSS.
Sass options can be passed to the plugin within stencil.config.js
, which are used directly by node-sass
. Please reference node-sass documentation for all available options. Note that this plugin automatically adds the component's directory to the includePaths
array.
The injectGlobalPaths
config is an array of paths that automatically get added as @import
declarations to all components. This can be useful to inject Sass variables, mixins and functions to override defaults of external collections. For example, apps can override default Sass variables of Ionic components. Relative paths within injectGlobalPaths
should be relative to the stencil.config.js
file.
exports.config = {
plugins: [
sass({
injectGlobalPaths: [
'src/globals/variables.scss',
'src/globals/mixins.scss'
]
})
]
};
Note that each of these files are always added to each component, so in most cases they shouldn't contain CSS because it'll get duplicated in each component. Instead, injectGlobalPaths
should only be used for Sass variables, mixins and functions, but not contain any CSS.
Please see our Contributor Code of Conduct for information on our rules of conduct.
FAQs
The Stencil Sass Plugin
The npm package @stencil/sass receives a total of 41,873 weekly downloads. As such, @stencil/sass popularity was classified as popular.
We found that @stencil/sass demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.