Created
November 19, 2019 15:04
-
-
Save mizchi/f2db567b50263e86e7e869355a56a974 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Copyright (C) Microsoft Corporation. All rights reserved. --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<!-- Disable pinch zooming --> | |
<meta | |
name="viewport" | |
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" | |
/> | |
<!-- Workbench Configuration --> | |
<meta id="vscode-workbench-web-configuration" data-settings="{{WORKBENCH_WEB_CONFIGURATION}}" /> | |
<!-- Workarounds/Hacks (remote user data uri) --> | |
<meta id="vscode-remote-user-data-uri" data-settings="{{REMOTE_USER_DATA_URI}}" /> | |
<!-- Workbench Icon/Manifest/CSS --> | |
<!-- <link rel="icon" href="/favicon.ico" type="image/x-icon" /> --> | |
<!-- <link rel="manifest" href="/manifest.json"> --> | |
</head> | |
<body aria-label=""></body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'vs/code/browser/workbench/workbench'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path'); | |
const HTMLWebpackPlugin = require('html-webpack-plugin'); | |
module.exports = { | |
entry: { | |
main: path.join(__dirname, 'index.ts') | |
}, | |
output: { | |
path: path.join(__dirname, 'dist') | |
}, | |
resolve: { | |
extensions: ['.ts', '.tsx', '.json', '.js', '.css', '.wasm'], | |
alias: { | |
vs: path.join(__dirname, '../src/vs'), | |
'onigasm-umd': path.join(__dirname, '../node_modules/onigasm-umd/release/main') | |
} | |
}, | |
module: { | |
rules: [ | |
{ | |
test: /\.(jpg|jpeg|png|woff|woff2|eot|ttf|svg)$/, | |
use: [ | |
{ | |
loader: 'url-loader', | |
options: { | |
limit: 8192 | |
} | |
} | |
] | |
}, | |
{ | |
test: /\.svg$/i, | |
use: ['svg-url-loader'] | |
}, | |
{ | |
test: /\.css$/i, | |
use: ['style-loader', 'css-loader'] | |
}, | |
{ | |
test: /\.tsx?/, | |
use: [ | |
{ | |
loader: 'ts-loader', | |
options: { | |
transpileOnly: true | |
} | |
} | |
] | |
} | |
] | |
}, | |
plugins: [ | |
new HTMLWebpackPlugin({ | |
template: path.join(__dirname, 'index.html') | |
}) | |
] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment