construction: Switched to JS from typescript
This commit is contained in:
parent
7e74f130c7
commit
eec8cb32e0
10 changed files with 6960 additions and 111 deletions
27
packages/models/webpack.config.js
Normal file
27
packages/models/webpack.config.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
mode: 'production',
|
||||
target: 'web',
|
||||
entry: './src/index.js',
|
||||
output: {
|
||||
path: path.resolve(__dirname, 'dist/browser'),
|
||||
filename: 'bundle.js',
|
||||
libraryTarget: 'var',
|
||||
library: 'freesewing_models'
|
||||
},
|
||||
module: {
|
||||
rules:[
|
||||
{
|
||||
test: /\.js$/,
|
||||
exclude: /node_modules/,
|
||||
use: {
|
||||
loader: 'babel-loader',
|
||||
options: {
|
||||
presets: ['@babel/preset-env']
|
||||
}
|
||||
}
|
||||
},
|
||||
]
|
||||
},
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue