Skip to content

Commit

Permalink
allow seperate webpacking of semantic and enrichment
Browse files Browse the repository at this point in the history
  • Loading branch information
zorkow committed Nov 16, 2024
1 parent b970fe5 commit 6f45a10
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions webpack.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ let sreConfig = Object.assign({}, config, {
});

let mjConfig = Object.assign({}, config, {
entry: path.resolve(__dirname, 'ts/common/mathjax.ts'),
entry: path.resolve(__dirname, 'js/common/mathjax.js'),
target: 'web',
output: {
filename: 'mathjax-sre.js',
Expand All @@ -74,4 +74,28 @@ let mjConfig = Object.assign({}, config, {
}
});

export default [sreConfig];
let semConfig = Object.assign({}, config, {
entry: path.resolve(__dirname, 'js/semantic_tree/semantic.js'),
target: 'web',
output: {
filename: 'semantic.js',
library: 'SEM',
libraryTarget: 'umd',
globalObject: 'this',
path: path.join(__dirname, 'lib'),
}
});

let emlConfig = Object.assign({}, config, {
entry: path.resolve(__dirname, 'js/enrich_mathml/enrich.js'),
target: 'web',
output: {
filename: 'enrich.js',
library: 'SEM',
libraryTarget: 'umd',
globalObject: 'this',
path: path.join(__dirname, 'lib'),
}
});

export default [semConfig];

0 comments on commit 6f45a10

Please sign in to comment.