webpack/webpack-cli

View on GitHub
packages/generators/plugin-template/default/examples/simple/_webpack.config.js.tpl

Summary

Maintainability
Test Coverage
const path = require('path');
const <%= name %> = require('../../src/index.js');

module.exports = {
  entry: './src/index.js',
  output: {
    path: path.join(__dirname, 'example_dist'),
    filename: '[name].chunk.js',
  },
  plugins: [
    new <%= name %>()
  ]
};