devtool
参考:
webpack で使える SourceMap 一覧まとめ | t-hiroyoshi-blog
webpack で source-map を表示できるようにする – Qiita
webpack.config.js の読み方、書き方 | dackdive’s blog
devtool – configuration · webpack/docs Wiki – GitHub
Quick guide to webpack source map options | Scott Logic Blog
web pack source map not working for some devtool options. · Issue #5491 · webpack/webpack – GitHub
How do I generate sourcemaps when using babel and webpack? – Stack Overflow
ソースマップの種類
- (none)
eval
cheap-eval-source-map
cheap-module-eval-source-map
eval-source-map
cheap-source-map
cheap-module-source-map
inline-cheap-source-map
inline-cheap-module-source-map
source-map
inline-source-map
hidden-source-map
nosources-source-map
参考:
webpack/examples/source-map/README.md at v4.26.1 · webpack/webpack – GitHub
cheap-module-source-map
参考:
cheap-module-source-map doesn’t generate sourcesContent · Issue #4176 · webpack/webpack – GitHub
Syntax
参考:
sourceMappingURL and sourceURL syntax changed | Google Developers
sourceMapFilename
参考:
output.sourceMapFilename | Webpack [Official]
output.sourceMapFilename – configuration · webpack/docs Wiki – GitHub
devtoolModuleFilenameTemplate
参考:
source map に指定される domain や path を変更する – Qiita
output.devtoolModuleFilenameTemplate | Webpack [Official]
output.devtoolModuleFilenameTemplate – configuration · webpack/docs Wiki – GitHub
Webpack’s sourcemap paths are not real paths · Issue #559 · webpack/webpack – GitHub
SourceMapDevToolPlugin
参考:
SourceMapDevToolPlugin | Webpack [Official]
webpack/SourceMapDevToolPlugin.js at v4.26.1 · webpack/webpack – GitHub
EvalSourceMapDevToolPlugin
参考:
EvalSourceMapDevToolPlugin | Webpack [Official]
webpack/EvalSourceMapDevToolPlugin.js at v4.26.1 · webpack/webpack – GitHub
webpack/EvalDevToolModuleTemplatePlugin.js at v4.26.1 · webpack/webpack – GitHub
webpack/ModuleFilenameHelpers.js at v4.26.1 · webpack/webpack – GitHub
ビルド・パフォーマンス
参考:
Performance of webpack-dev-server with source maps · Issue #168 · webpack/webpack – GitHub
devtoolModuleFilenameTemplate
参考:
webpack://
参考:
How to resolve file path from a webpack:/// URI · Issue #2395 · webpack/webpack – GitHub
sourcemap collision when building as a library · Issue #5767 · webpack/webpack – GitHub
webpack-internal://
参考:
Chrome でソースマップを使う
参考:
Source maps with newer Chrome DevTools’ workspaces · Issue #6400 · webpack/webpack – GitHub
Source Maps don’t work on Chrome · Issue #2145 · webpack/webpack – GitHub
style タグ内のソースマップが Safari で効かない
参考:
Does source-maps in style tags work? – Stack Overflow
Sass / SCSS
参考:
Using Source Maps to Debug Sass in Chrome | SitePoint
TypeScript
参考:
TypeScript で React を書く | maesblog
Getting started with Webpack: Source Maps | Bendyworks
The joy that is Source Maps (with Vue.js and TypeScript) | Peter’s
source-map-loader
rules: [ // ... { test: /\.js$/, use: ['source-map-loader'], enforce: 'pre' }, // ... ]
参考:
The joy that is Source Maps (with Vue.js and TypeScript) | Peter’s
How to load library source maps using webpack? – Stack Overflow
Where does source-map-loader fit into TypeScript compilation with Webpack? – Stack Overflow
Windows でパスが壊れる
参考: