-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
41 lines (34 loc) · 1.07 KB
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//const { paths } = require('mathjax-full/components/src/dependencies');
const PACKAGE = require('mathjax-full/components/webpack.common.js');
//const PACKAGE = require('./webpackModded');
module.exports = PACKAGE(
'siunitx', // the name of the package to build
'node_modules/mathjax-full/js', // location of the mathjax library
[ // packages to link to
'components/src/core/lib',
'components/src/input/tex-base/lib'
],
__dirname + '/js', // our directory
'../.' // where to put the packaged component,
);
// module.exports = {
// context: __dirname,
// entry: './src/siunitx.ts',
// mode: 'development',
// module: {
// rules: [
// {
// test: /\.tsx?$/,
// use: 'ts-loader',
// exclude: /node_modules/
// }
// ]
// },
// output: {
// filename: 'siunitx.js',
// path: path.resolve(__dirname, 'js'),
// resolve: {
// extensions: ['.ts', '.js']
// }
// }
// };