1
0
Fork 0

construction: Switched to JS from typescript

This commit is contained in:
Joost De Cock 2018-07-15 19:10:04 +02:00
parent 7e74f130c7
commit eec8cb32e0
10 changed files with 6960 additions and 111 deletions

View 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']
}
}
},
]
},
};