davidturissini / lwc-webpack-plugin

Webpack Plugin for LWC

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LWC Webpack Plugin

Usage

// webpack.config.js
const path = require('path');
const LWCWebpackPlugin = require('lwc-webpack-plugin');

module.exports = {
    plugins: [
        new LWCWebpackPlugin({
            namespace: {
                // LWC Namespace with path
                mynamespace: path.resolve('./src/modules/mynamespace')
            },
            // NPM modules
            modules: [
                '@salesforce-ux/design-system'
            ]
        }),
    ]
}

About

Webpack Plugin for LWC


Languages

Language:TypeScript 86.2%Language:JavaScript 8.5%Language:HTML 4.4%Language:CSS 0.9%