Initial commit
This commit is contained in:
33
node_modules/react-password-mask/webpack.config.js
generated
vendored
Normal file
33
node_modules/react-password-mask/webpack.config.js
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
const path = require('path');
|
||||
const webpack = require('webpack');
|
||||
|
||||
const libraryName = 'passwordMask';
|
||||
|
||||
module.exports = {
|
||||
entry: path.join(__dirname, 'src/index.js'),
|
||||
output: {
|
||||
path: path.join(__dirname, 'lib'),
|
||||
filename: libraryName + '.min.js',
|
||||
library: libraryName,
|
||||
libraryTarget: 'umd',
|
||||
umdNamedDefine: true
|
||||
},
|
||||
externals: {
|
||||
react: 'react'
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.js$/,
|
||||
use: 'babel-loader',
|
||||
exclude: /node_modules/
|
||||
},
|
||||
{
|
||||
test: /\.js$/,
|
||||
use: 'eslint-loader',
|
||||
exclude: /node_modules/
|
||||
}
|
||||
]
|
||||
},
|
||||
plugins: [new webpack.optimize.UglifyJsPlugin({ minimize: true })]
|
||||
};
|
||||
Reference in New Issue
Block a user