mirror of
https://github.com/coder/code-server.git
synced 2025-07-28 20:43:24 +08:00
chore(vscode): update to 1.55.2
This commit is contained in:
@ -3,8 +3,16 @@
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
const path = require('path');
|
||||
const CopyPlugin = require('copy-webpack-plugin');
|
||||
|
||||
module.exports = {
|
||||
context: path.resolve(__dirname),
|
||||
mode: 'production',
|
||||
performance: {
|
||||
hints: false,
|
||||
maxEntrypointSize: 512000,
|
||||
maxAssetSize: 512000
|
||||
},
|
||||
entry: {
|
||||
katex: './notebook/katex.ts',
|
||||
emoji: './notebook/emoji.ts',
|
||||
@ -14,15 +22,6 @@ module.exports = {
|
||||
{
|
||||
test: /\.tsx?$/,
|
||||
use: 'ts-loader',
|
||||
exclude: /node_modules/
|
||||
},
|
||||
{
|
||||
test: /\.css$/i,
|
||||
use: ['style-loader', 'css-loader'],
|
||||
},
|
||||
{
|
||||
test: /\.(woff|woff2|eot|ttf|otf)$/i,
|
||||
use: ['url-loader?limit=100000']
|
||||
},
|
||||
],
|
||||
},
|
||||
@ -32,5 +31,20 @@ module.exports = {
|
||||
output: {
|
||||
filename: '[name].js',
|
||||
path: path.resolve(__dirname, 'notebook-out')
|
||||
}
|
||||
},
|
||||
plugins: [
|
||||
// @ts-ignore
|
||||
new CopyPlugin({
|
||||
patterns: [
|
||||
{
|
||||
from: './node_modules/katex/dist/katex.min.css',
|
||||
to: 'katex.min.css'
|
||||
},
|
||||
{
|
||||
from: './node_modules/katex/dist/fonts',
|
||||
to: 'fonts/'
|
||||
},
|
||||
],
|
||||
}),
|
||||
]
|
||||
};
|
||||
|
Reference in New Issue
Block a user