开源软件名称(OpenSource Name):krasimir/webpack-library-starter开源软件地址(OpenSource Url):https://github.com/krasimir/webpack-library-starter开源编程语言(OpenSource Language):JavaScript 61.8%开源软件介绍(OpenSource Introduction):Webpack library starterWebpack based boilerplate for producing libraries (Input: ES6/TypeScript, Output: universal library) Features
Process
Have in mind that you have to build your library before publishing. The files under the Getting started
Scripts
ReadingsMiscAn example of using dependencies that shouldn’t be resolved by webpack, but should become dependencies of the resulting bundleIn the following example we are excluding React and Lodash: {
devtool: 'source-map',
output: {
path: '...',
libraryTarget: 'umd',
library: '...'
},
entry: '...',
...
externals: {
react: 'react'
// Use more complicated mapping for lodash.
// We need to access it differently depending
// on the environment.
lodash: {
commonjs: 'lodash',
commonjs2: 'lodash',
amd: '_',
root: '_'
}
}
} |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论