mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 16:49:06 +01:00
Make sure katex styles are shipped under root of
Also copies of just the katex css we need instead of bundling the entire module
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
* 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 = {
|
||||
entry: {
|
||||
@@ -23,5 +24,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