upload-my-sourcemap-plugin
v0.0.1
Published
Upload the sourcemap files after your project is packaged
Downloads
2
Readme
Upload-Sourcemap-Plugin
Upload the sourcemap files after your project is packaged
Installation
yarn add --dev upload-sourcemap-plugin
Basic Usage
// webpack.prod.config.js
const UploadSourceMapPlugin = require('upload-source-map-plugin')
module.exports = merge(baseConfig, {
//..
plugins: [
...baseConfig.plugins,
new UploadSourceMapPlugin({
targetUrl: 'https://xxx/api/upload', // upload api url
buildPath: path.join(process.cwd(), 'dist') // The folder path of the packaged product
})
]
})