Created
July 30, 2022 22:50
-
-
Save jbenner-radham/377938446639d9c9f4e90ef501e97b06 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 * as path from 'path'; | |
| import * as webpack from 'webpack'; | |
| const config: webpack.Configuration = { | |
| entry: './lib/index.ts', | |
| mode: 'production', | |
| module: { | |
| rules: [ | |
| { | |
| exclude: /node_modules/, | |
| test: /\.ts$/, | |
| use: { | |
| loader: 'babel-loader', | |
| options: { | |
| rootMode: 'upward' | |
| } | |
| } | |
| } | |
| ] | |
| }, | |
| output: { | |
| filename: 'index.bundle.js', | |
| path: path.resolve(__dirname, 'dist') | |
| }, | |
| resolve: { | |
| alias: { | |
| '@vcard/vcard4-meta': path.resolve(__dirname, '../vcard4-meta/dist') | |
| }, | |
| extensions: ['.ts', '...'] | |
| } | |
| }; | |
| export default config; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment