You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

01-custom-library-npm

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

01-custom-library-npm - npm Package Compare versions

Comparing version

to
1.0.1

README.md

2

package.json
{
"name": "01-custom-library-npm",
"version": "1.0.0",
"version": "1.0.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/webpack-numbers.js",

@@ -8,5 +8,21 @@ const path = require('path')

path: path.resolve(__dirname, 'dist'),
clean: true,
filename: 'webpack-numbers.js',
clean: true
library: {
// library 向外暴露的对象名
name: 'webpackNumbers',
// 兼容不同的环境 CommonJS、AMD、Node.js 等
type: 'umd',
},
},
// 外部扩展:https://webpack.docschina.org/configuration/externals/#externals
externals: {
lodash: {
commonjs: 'lodash',
commonjs2: 'lodash',
amd: 'lodash',
root: '_',
},
},
}

Sorry, the diff of this file is too big to display