Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 565 Bytes

README.md

File metadata and controls

25 lines (21 loc) · 565 Bytes

Upload-Sourcemap-Plugin

Upload the sourcemap files after your project is packaged

Installation

yarn add --dev upload-my-sourcemap-plugin

Basic Usage

// webpack.prod.config.js
const UploadSourceMapPlugin = require('upload-my-sourcemap-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
    })
  ]
})