Skip to content

Commit a434b98

Browse files
davidlehndlongley
authored andcommitted
Default to cheap-module-source-map.
- Files are MUCH smaller and will be added to forge-dist. - Custom build will be required for a full "source-map".
1 parent faa2c37 commit a434b98

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Forge ChangeLog
2222
### Added
2323

2424
- webpack bundler support via `npm run build`:
25-
- Builds .js, .min.js, and sourcemaps.
25+
- Builds .js, .min.js, and basic sourcemaps.
2626
- Basic build: forge.js.
2727
- Build with extra utils and networking support: forge.all.js.
2828
- Build WebWorker support: prime.worker.js.

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ sizes.
4848
* `git checkout {version}`
4949
* `npm run build`
5050
* Copy files to `forge-dist`:
51-
* `cp dist/forge.min.js dist/prime.worker.min.js FORGEDIST/dist/`
51+
* `cp dist/forge.min.js{,.map} dist/prime.worker.min.js{,.map} FORGEDIST/dist/`
5252
* Release `forge-dist`:
5353
* Commit changes.
5454
* `git tag {version}`

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ outputs.forEach((info) => {
8282
library: info.library || '[name]',
8383
libraryTarget: info.libraryTarget || 'umd'
8484
},
85-
devtool: 'source-map',
85+
devtool: 'cheap-module-source-map',
8686
plugins: [
8787
new webpack.optimize.UglifyJsPlugin({
8888
compress: {

0 commit comments

Comments
 (0)