summaryrefslogtreecommitdiffhomepage
path: root/packages/browser/webpack.config.js
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2021-04-01 21:35:17 -0700
committerMatthew Miller <matthew@millerti.me>2021-04-01 21:35:17 -0700
commit6cace83db0dffa4a60b11afe3a92a9e874397507 (patch)
treec3ec811de3b8a84c57e2b7db667406d6b187583e /packages/browser/webpack.config.js
parent046e2fc4393da1906f35ac9e48847d646c316091 (diff)
Clean out Webpack
Diffstat (limited to 'packages/browser/webpack.config.js')
-rw-r--r--packages/browser/webpack.config.js45
1 files changed, 0 insertions, 45 deletions
diff --git a/packages/browser/webpack.config.js b/packages/browser/webpack.config.js
deleted file mode 100644
index 1c060c3..0000000
--- a/packages/browser/webpack.config.js
+++ /dev/null
@@ -1,45 +0,0 @@
-const path = require('path');
-const WebpackAutoInject = require('webpack-auto-inject-version');
-
-const packageJSON = require('./package.json');
-const outputPath = path.resolve(__dirname, 'dist');
-
-module.exports = {
- entry: './src/index.ts',
- mode: 'production',
- devtool: 'source-map',
- module: {
- rules: [
- {
- test: /.ts$/,
- use: 'ts-loader',
- exclude: /node_modules/,
- },
- ],
- },
- resolve: {
- extensions: ['.ts', '.js'],
- },
- output: {
- path: outputPath,
- filename: 'simplewebauthn-browser.min.js',
- library: 'SimpleWebAuthnBrowser',
- libraryTarget: 'umd',
- globalObject: 'this',
- },
- plugins: [
- new WebpackAutoInject({
- SHORT: packageJSON.name,
- PACKAGE_JSON_INDENT: 2,
- components: {
- AutoIncreaseVersion: false,
- },
- componentsOptions: {
- InjectAsComment: {
- tag: 'Version: {version} - {date}',
- multiLineCommentType: true,
- },
- },
- }),
- ],
-};