Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
piral-cli-webpack5
Advanced tools
Provides debug and build capabilities for pilets and Piral instances using Webpack v5.
This plugin enables using Webpack v5 as the bundler for Piral instances and pilets.
Use your favorite NPM client for the installation:
npm i piral-cli-webpack5 --save-dev
Note: The plugin has to be installed to tell the piral-cli
to use Webpack v5 as the default bundler.
There is nothing to do. Standard commands such as piral build
or pilet debug
will now work with Webpack as the bundler.
This plugin comes with batteries included. You don't need to install or specify your Webpack version.
Right now it includes:
babel-loader
,css-loader
,file-loader
,source-map-loader
,sass-loader
,style-loader
,ts-loader
,parcel-codegen-loader
,import-maps-webpack-plugin
,html-webpack-plugin
,mini-css-extract-plugin
,optimize-css-assets-webpack-plugin
,terser-webpack-plugin
,webpack
, andwebpack-dev-server
.As such it should be prepared to include assets (images, videos, ...), stylesheets (CSS and SASS), and work with TypeScript.
Right now the output of this plugin is for the v1 pilet schema only!
No support for the legacy v0 pilet schema.
You can still leverage your own webpack.config.js
. Either just export what you want to have overwritten, e.g.,
module.exports = {
devtool: 'inline-source-map',
};
or specify a function that is called with the already created configuration.
An example would be:
module.exports = function(config) {
config.plugins.push(myAwesomePlugin);
config.entry.side = ['@babel/polyfill'];
return config;
};
Otherwise, you can also use the extend-config
helper module to get the job done without having to know the internals:
const extendConfig = require('piral-cli-webpack5/extend-config');
module.exports = extendConfig({
checkTypes: true, // not only transpiles TS, but also checks the types
noPresets: true, // removes existing presets from Babel
rules: [], // adds additional rules
removeRules: [], // removes the rules mentioned by their loader name
plugins: [], // adds additional plugins
removePlugins: [], // removes the plugins mentioned by their class reference
fileLoaderOptions: {}, // sets the options for the file loader
tsLoaderOptions: {}, // sets the options for the TS loader
babelLoaderOptions: {}, // sets the options for the Babel loader
cssLoaderOptions: {}, // sets the options for the CSS loader
sassLoaderOptions: {}, // sets the options for the SASS loader
});
Piral is released using the MIT license. For more information see the license file.
0.14.1 (November 19, 2021)
piral-lazy
plugins
in extend-config
of piral-cli-webpack(5)
(#422)piral-cli-parcel
piral-cli-esbuild
deps
props to components loaded with piral-lazy
piral-oidc
and piral-oauth2
createDeferredStrategy
to piral-base
for simplifying deferred pilet fetchingextraTypes
field in package.json of a Piral instanceFAQs
Provides debug and build capabilities for pilets and Piral instances using Webpack v5.
The npm package piral-cli-webpack5 receives a total of 4,944 weekly downloads. As such, piral-cli-webpack5 popularity was classified as popular.
We found that piral-cli-webpack5 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.