0.0.2 • Published 5 years ago

webpack-integration-plugin v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

webpack-integration-plugin

Webpack plugin to provide integration with other frameworks.

Installation

npm i -D webpack-integration-plugin

Usage

const WebpackIntegrationPlugin = require('webpack-integration-plugin');

// Webpack config
module.exports = {
    plugins: [
        new WebpackIntegrationPlugin({options})
    ]
}

Example

const path = require('path');
const WebpackIntegrationPlugin = require('webpack-integration-plugin');

// Sample webpack config
module.exports = {
    entry: './index.js',
    output: {
        filename: 'bundle.js',
        path: path.resolve(__dirname, 'dist')
    },
    module: {
        rules: [
            {
                test: /\.(js|jsx)$/,
                loader: 'babel-loader'
            }
        ]
    },
    plugins: [
        new WebpackIntegrationPlugin({
            path: path.resolve(__dirname, 'dist')
        })
    ]
}

Options

  • path
    • Defines path to store stats file.
    • Default: '.' (current directory)
  • logTime
    • Flag to log building datetime to stats file.
    • Default: false
  • filename
    • Stats file name.
    • Default: 'webpack-stats.json'
  • publicPath
    • Public path to access bundle files.
    • Default: publicPath from output section of webpack config

Changelog

  • v0.0.1 (26.02.2019)
    • Development start
  • v0.0.2 (26.02.2019)
    • Small fixes