mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-06-27 21:05:53 +00:00
Fix jsconfig.json so that import aliases work in VS Code.
This commit is contained in:
parent
d2b4dcbce4
commit
7f2522508e
3 changed files with 24 additions and 11 deletions
22
jsconfig.json
Normal file
22
jsconfig.json
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"lib": [
|
||||
"dom",
|
||||
"es2015",
|
||||
"es2016",
|
||||
"es6",
|
||||
"es2017"
|
||||
],
|
||||
"target": "es2017",
|
||||
"module": "es6",
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"res": ["res"],
|
||||
"styles": ["styles"],
|
||||
"src": ["src"],
|
||||
"utilities": ["src/utilities"],
|
||||
"site": ["src/sites/twitch-twilight"]
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "es6",
|
||||
"paths": {
|
||||
"utilities": ["./utilities"]
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,10 +1,9 @@
|
|||
/* eslint-disable */
|
||||
const path = require('path');
|
||||
const merge = require('webpack-merge');
|
||||
const common = require('./webpack.web.common.js');
|
||||
|
||||
const CopyPlugin = require('copy-webpack-plugin');
|
||||
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
|
||||
const ManifestPlugin = require('webpack-manifest-plugin');
|
||||
|
||||
module.exports = merge(common, {
|
||||
devtool: 'inline-source-map',
|
||||
|
@ -41,7 +40,7 @@ module.exports = merge(common, {
|
|||
|
||||
before(app) {
|
||||
// Because the headers config option is broken.
|
||||
app.get("/*", (req, res, next) => {
|
||||
app.get('/*', (req, res, next) => {
|
||||
res.setHeader('Access-Control-Allow-Origin', '*');
|
||||
next();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue