pilet-webpack-plugin
    TypeScript icon, indicating that this package has built-in type declarations

    0.8.0 • Public • Published

    npm node chat size

    pilet-webpack-plugin

    The pilet-webpack-plugin helps you to build pilets using Webpack.

    Getting Started

    To begin, you'll need to install pilet-webpack-plugin:

    npm install pilet-webpack-plugin --save-dev

    Then add the plugin to your webpack config. For example:

    webpack.config.js

    const { PiletWebpackPlugin } = require('pilet-webpack-plugin');
    const piletPkg = require('./package.json');
    
    module.exports = {
      plugins: [
        new PiletWebpackPlugin({
          name: piletPkg.name,
          version: piletPkg.version,
          piral: piletPkg.piral.name,
        }),
      ],
    };

    And run webpack via your preferred method.

    Options

    variables

    Allows supplying additional variables to be used as definitions. Similar to the definePlugin.

    Example:

    const { PiletWebpackPlugin } = require('pilet-webpack-plugin');
    const piletPkg = require('./package.json');
    
    module.exports = {
      plugins: [
        new PiletWebpackPlugin({
          name: piletPkg.name,
          version: piletPkg.version,
          piral: piletPkg.piral.name,
          variables: {
            PIRAL_CLI_VERSION: require('piral-cli/package.json').version,
          },
        }),
      ],
    };

    Contributing

    Contributions in any form are appreciated and much welcome!

    Just make sure to post an issue or reach out to me on Gitter before starting actual work on anything. It really helps to avoid problems.

    License

    This plugin is released using the MIT license.

    Install

    npm i pilet-webpack-plugin

    DownloadsWeekly Downloads

    3,326

    Version

    0.8.0

    License

    MIT

    Unpacked Size

    30.3 kB

    Total Files

    16

    Last publish

    Collaborators

    • florianrappl