mirror of
https://github.com/TurboWarp/desktop.git
synced 2024-11-25 16:36:20 +08:00
Use no-eval source maps instead
eval is blocked by CSP in the addons settings page
This commit is contained in:
parent
766d957f3c
commit
7684cbd438
@ -56,6 +56,7 @@ const FILE_SCHEMES = {
|
||||
const MIME_TYPES = new Map();
|
||||
MIME_TYPES.set('.html', 'text/html');
|
||||
MIME_TYPES.set('.js', 'text/javascript');
|
||||
MIME_TYPES.set('.map', 'application/json');
|
||||
MIME_TYPES.set('.txt', 'text/plain');
|
||||
MIME_TYPES.set('.json', 'application/json');
|
||||
MIME_TYPES.set('.wav', 'audio/wav');
|
||||
|
@ -4,7 +4,7 @@ const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||
|
||||
const base = {
|
||||
mode: process.env.NODE_ENV === 'production' ? 'production' : 'development',
|
||||
devtool: process.env.NODE_ENV === 'production' ? false : 'eval',
|
||||
devtool: process.env.NODE_ENV === 'production' ? false : 'cheap-source-map',
|
||||
target: 'web',
|
||||
module: {
|
||||
rules: [
|
||||
|
Loading…
Reference in New Issue
Block a user