
Security News
Open Source Maintainers Demand Ability to Block Copilot-Generated Issues and PRs
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
@sanity/webpack-integration
Advanced tools
Tools and modules required for making partisan (the part system) work with webpack
Supply Chain Security
Vulnerability
Quality
Maintenance
License
This package is part of Sanity Studio v2, which has been superseded by Sanity Studio v3, the current major version released on Dec 7th, 2022. This package is no longer used/needed for Sanity Studio in its current version and will be retired on Dec 7th, 2023. The core packages for Sanity Studio v2 will only receive critical bug fixes until this date.
Please head over to the documentation for Sanity Studio v3 to learn more.
Tools and modules required for making partisan (the part system) work with webpack. Note: currently only works with Webpack 1.
npm install --save @sanity/webpack-integration
const sanityWebpack = require('@sanity/webpack-integration/v1')
const options = {
basePath: '/path/to/project',
env: 'production',
}
// Get array of plugins required for part loading
sanityWebpack.getPlugins(options)
// Get array of loader definitions required for part loading
sanityWebpack.getLoaders(options)
// Get array of postcss plugins required to build the CSS used in Sanity
sanityWebpack.getPostcssPlugins(options)
// Get a partial webpack configuration for the Sanity-specific parts. You'll have to merge this with your existing webpack config.
sanityWebpack.getConfig(options)
// Less common, but if you need more fine-grained access to internals:
// Get a preconfigured `DefinePlugin` that exposes `__DEV__`
sanityWebpack.getEnvPlugin(options)
// Get the part resolver plugin required for part imports
sanityWebpack.getPartResolverPlugin(options)
// Get the part loader (requires the PartResolverPlugin)
sanityWebpack.getPartLoader(options)
// Get the resolving function required for postcss-import
sanityWebpack.getStyleResolver(options)
// Get an initialized postcss-import plugin
sanityWebpack.getPostcssImportPlugin(options)
MIT-licensed. See LICENSE.
FAQs
Tools and modules required for making partisan (the part system) work with webpack
The npm package @sanity/webpack-integration receives a total of 3,566 weekly downloads. As such, @sanity/webpack-integration popularity was classified as popular.
We found that @sanity/webpack-integration demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 39 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
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Research
Security News
Malicious Koishi plugin silently exfiltrates messages with hex strings to a hardcoded QQ account, exposing secrets in chatbots across platforms.
Research
Security News
Malicious PyPI checkers validate stolen emails against TikTok and Instagram APIs, enabling targeted account attacks and dark web credential sales.