Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

piral-cli-webpack5

Package Overview
Dependencies
Maintainers
1
Versions
680
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

piral-cli-webpack5

Provides debug and build capabilities for pilets and Piral instances using Webpack v5.

  • 0.12.4-pre.1846
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.6K
decreased by-45.39%
Maintainers
1
Weekly downloads
 
Created
Source

Piral Logo

Piral CLI Webpack5 · GitHub License npm version tested with jest Gitter Chat

This plugin enables using Webpack v5 as the bundler for Piral instances and pilets.

Installation

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.

Using

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.

What's Inside

Right now it includes:

  • babel-loader,
  • css-loader,
  • file-loader,
  • source-map-loader,
  • sass-loader,
  • style-loader,
  • ts-loader,
  • parcel-codegen-loader,
  • piral-instance-webpack-plugin,
  • pilet-webpack-plugin,
  • html5-entry-webpack-plugin,
  • import-map-webpack-plugin,
  • html-webpack-plugin,
  • mini-css-extract-plugin,
  • optimize-css-assets-webpack-plugin,
  • terser-webpack-plugin,
  • webpack, and
  • webpack-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.

Customizing

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;
};

License

Piral is released using the MIT license. For more information see the license file.

Keywords

FAQs

Package last updated on 21 Oct 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc