Skip to content
Sample project for including source map files from your spfx project into the final package
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
src
.gitignore
README.md
gulpfile.js
insertSourceMapsTasks.js
package-lock.json
package.json
tsconfig.json
tslint.json

README.md

Include source maps in your SharePoint Framework package

A sample project for including source map files in the final package file and deploy them to production environments for easy debugging.

Building the code

npm i
npm i -g gulp
gulp dist --ship

insertSourceMapTasks.js

The hero of this repo, this is where the code that magically imports any .map files into the final package lives. If you want to know what's behind the magic, check this article for a step-by-step analysis of the process involved.

gulpfile.js

Where all the tasks are combined into a single dist task. Also where the source map files are forced to be created by changing the webpack configurations. You can read more about these changes from this article.

You can’t perform that action at this time.