How to use the @open-wc/building-webpack.createDefaultConfig function in @open-wc/building-webpack

To help you get started, we’ve selected a few @open-wc/building-webpack examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github open-wc / open-wc / packages / create / src / generators / building-webpack / templates / static / webpack.config.js View on Github external
const path = require('path');
const { createDefaultConfig } = require('@open-wc/building-webpack');

// if you need to support IE11 use "modern-and-legacy-config" instead.
// const { createCompatibilityConfig } = require('@open-wc/building-webpack');
// module.exports = createCompatibilityConfig({
//   input: path.resolve(__dirname, './index.html'),
// });

module.exports = createDefaultConfig({
  input: path.resolve(__dirname, './index.html'),
});

@open-wc/building-webpack

Default configuration for working with webpack

MIT
Latest version published 4 years ago

Package Health Score

64 / 100
Full package analysis

Popular @open-wc/building-webpack functions