mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-02 01:19:53 +00:00
use webpack.sourcemapdevtoolplugin for reliable sourcemaps
This commit is contained in:
parent
ce49dd9dae
commit
5820b7ff9a
@ -4,7 +4,6 @@ const webpack = require('webpack')
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
target: 'node',
|
target: 'node',
|
||||||
entry: 'src/index.ts',
|
entry: 'src/index.ts',
|
||||||
devtool: 'source-map',
|
|
||||||
context: __dirname,
|
context: __dirname,
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, 'dist'),
|
path: path.resolve(__dirname, 'dist'),
|
||||||
@ -51,5 +50,9 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.optimize.ModuleConcatenationPlugin(),
|
new webpack.optimize.ModuleConcatenationPlugin(),
|
||||||
|
new webpack.SourceMapDevToolPlugin({
|
||||||
|
exclude: [/node_modules/, /vendor/],
|
||||||
|
filename: '[file].map',
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,6 @@ const webpack = require('webpack')
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
target: 'node',
|
target: 'node',
|
||||||
entry: 'src/index.ts',
|
entry: 'src/index.ts',
|
||||||
devtool: 'source-map',
|
|
||||||
context: __dirname,
|
context: __dirname,
|
||||||
mode: 'development',
|
mode: 'development',
|
||||||
output: {
|
output: {
|
||||||
@ -61,5 +60,9 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.optimize.ModuleConcatenationPlugin(),
|
new webpack.optimize.ModuleConcatenationPlugin(),
|
||||||
|
new webpack.SourceMapDevToolPlugin({
|
||||||
|
exclude: [/node_modules/, /vendor/],
|
||||||
|
filename: '[file].map',
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,6 @@ const webpack = require('webpack')
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
target: 'node',
|
target: 'node',
|
||||||
entry: 'src/index.ts',
|
entry: 'src/index.ts',
|
||||||
devtool: 'source-map',
|
|
||||||
context: __dirname,
|
context: __dirname,
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, 'dist'),
|
path: path.resolve(__dirname, 'dist'),
|
||||||
@ -56,5 +55,9 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.optimize.ModuleConcatenationPlugin(),
|
new webpack.optimize.ModuleConcatenationPlugin(),
|
||||||
|
new webpack.SourceMapDevToolPlugin({
|
||||||
|
exclude: [/node_modules/, /vendor/],
|
||||||
|
filename: '[file].map',
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,6 @@ const webpack = require('webpack')
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
target: 'node',
|
target: 'node',
|
||||||
entry: 'src/index.ts',
|
entry: 'src/index.ts',
|
||||||
devtool: 'source-map',
|
|
||||||
context: __dirname,
|
context: __dirname,
|
||||||
mode: 'development',
|
mode: 'development',
|
||||||
output: {
|
output: {
|
||||||
@ -58,5 +57,9 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.optimize.ModuleConcatenationPlugin(),
|
new webpack.optimize.ModuleConcatenationPlugin(),
|
||||||
|
new webpack.SourceMapDevToolPlugin({
|
||||||
|
exclude: [/node_modules/, /vendor/],
|
||||||
|
filename: '[file].map',
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
const path = require('path')
|
const path = require('path')
|
||||||
|
const webpack = require('webpack')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
target: 'node',
|
target: 'node',
|
||||||
entry: 'src/index.ts',
|
entry: 'src/index.ts',
|
||||||
devtool: 'source-map',
|
|
||||||
context: __dirname,
|
context: __dirname,
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, 'dist'),
|
path: path.resolve(__dirname, 'dist'),
|
||||||
@ -54,5 +54,12 @@ module.exports = {
|
|||||||
/^@angular/,
|
/^@angular/,
|
||||||
/^@ng-bootstrap/,
|
/^@ng-bootstrap/,
|
||||||
/^terminus-/,
|
/^terminus-/,
|
||||||
]
|
],
|
||||||
|
plugins: [
|
||||||
|
new webpack.optimize.ModuleConcatenationPlugin(),
|
||||||
|
new webpack.SourceMapDevToolPlugin({
|
||||||
|
exclude: [/node_modules/, /vendor/],
|
||||||
|
filename: '[file].map',
|
||||||
|
}),
|
||||||
|
],
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,6 @@ const webpack = require('webpack')
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
target: 'node',
|
target: 'node',
|
||||||
entry: 'src/index.ts',
|
entry: 'src/index.ts',
|
||||||
devtool: 'source-map',
|
|
||||||
context: __dirname,
|
context: __dirname,
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, 'dist'),
|
path: path.resolve(__dirname, 'dist'),
|
||||||
@ -77,5 +76,9 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
plugins: [
|
plugins: [
|
||||||
new webpack.optimize.ModuleConcatenationPlugin(),
|
new webpack.optimize.ModuleConcatenationPlugin(),
|
||||||
|
new webpack.SourceMapDevToolPlugin({
|
||||||
|
exclude: [/node_modules/, /vendor/],
|
||||||
|
filename: '[file].map',
|
||||||
|
}),
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user