Skip to content

wbh1328551759/upload-sourcemap-webpack-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published