
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
@appsemble/webpack-config
Advanced tools
An opinionated reusable Webpack configuration for block development
npm install @appsemble/webpack-config
No setup is needed to use this configuration. @appsemble/cli
will automatically fall back to this
configuration if no webpack
file has been specified in the .appsemblerc.yaml
of the block and no
webpack.config.js
file exists.
This Webpack preset features:
*.module.css
)*.gif
, *.jpg
, *.jpeg
, *.png
, *.svg
, *.woff
, *.woff2
)In order to add support for static assets and CSS modules, use the following tsconfig.json
options:
{
"compilerOptions": {
"types": ["@appsemble/webpack-config/types"]
}
}
Since a Webpack configuration is a function that returns a Webpack configuration, this preset can be
overridden by simply calling it from a file named webpack.config.js
in the block root and
modifying the result.
import createConfig from '@appsemble/webpack-config';
import ImageMinimizerPlugin from 'image-minimizer-webpack-plugin';
export default function webpackConfig(blockConfig, options) {
const config = createConfig(blockConfig, options);
// Add a plugin for example
config.plugins.push(new ImageMinimizerPlugin());
// Or configure a fallback
config.resolve.alias.fallback.fs = false;
return config;
}
FAQs
NodeJS utilities used by Appsemble internally.
The npm package @appsemble/webpack-config receives a total of 611 weekly downloads. As such, @appsemble/webpack-config popularity was classified as not popular.
We found that @appsemble/webpack-config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.