0.0.1 • Published 2 years ago

upload-my-sourcemap-plugin v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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
    })
  ]
})