28 lines
516 B
JavaScript
28 lines
516 B
JavaScript
![]() |
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']
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
]
|
||
|
},
|
||
|
};
|