piral-instance-webpack-plugin

Webpack plugin for generating a valid Piral instance bundle.

Usage no npm install needed!

<script type="module">
  import piralInstanceWebpackPlugin from 'https://cdn.skypack.dev/piral-instance-webpack-plugin';
</script>

README

Piral Logo

Piral Webpack Tools

Azure Build Status GitHub License

This repository contains the packages used to enable Webpack support in Piral. We support multiple options.

Options

Using the Piral CLI

The easiest option is to use the piral-cli and install another dev dependency piral-cli-webpack.

npm i piral-cli-webpack --save-dev

The existing build, debug, and publish commands will now just work with Webpack.

For details, see the plugin's README.

Using Webpack Directly

If you want to fully configure Webpack yourself you can just leverage either

npm i piral-instance-webpack-plugin --save-dev

for your Piral instance, or

npm i pilet-webpack-plugin --save-dev

for pilets.

There are also standalone plugins for things such as support for .codegen files or using HTML as an entry module in Webpack.

License

The code here is released using the MIT license. For more information see the LICENSE file.