@nsshunt/stsoauth2plugin 0.1.4 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/webpack.config.js DELETED
@@ -1,48 +0,0 @@
1
- // Generated using webpack-cli https://github.com/webpack/webpack-cli
2
-
3
- const path = require("path");
4
-
5
- const isProduction = process.env.NODE_ENV == "production";
6
-
7
- const config = {
8
- entry: "./src/index.ts",
9
- output: {
10
- path: path.resolve(__dirname, "dist"),
11
- filename: 'index.js',
12
- libraryTarget: 'commonjs',
13
- library: 'stsoauth2plugin',
14
- umdNamedDefine: true
15
- },
16
- plugins: [
17
- // Add your plugins here
18
- // Learn more about plugins from https://webpack.js.org/configuration/plugins/
19
- ],
20
- module: {
21
- rules: [
22
- {
23
- test: /\.(ts|tsx)$/i,
24
- loader: "ts-loader",
25
- exclude: ["/node_modules/"],
26
- },
27
- {
28
- test: /\.(eot|svg|ttf|woff|woff2|png|jpg|gif)$/i,
29
- type: "asset",
30
- },
31
-
32
- // Add your rules for custom modules here
33
- // Learn more about loaders from https://webpack.js.org/loaders/
34
- ],
35
- },
36
- resolve: {
37
- extensions: [".tsx", ".ts", ".js"],
38
- },
39
- };
40
-
41
- module.exports = () => {
42
- if (isProduction) {
43
- config.mode = "production";
44
- } else {
45
- config.mode = "development";
46
- }
47
- return config;
48
- };