Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@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;
}
[0.29.4] - 2024-06-27
FAQs
NodeJS utilities used by Appsemble internally.
The npm package @appsemble/webpack-config receives a total of 358 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 0 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
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.