foto-em-variacao
Version:
Uma biblioteca para adicionar imagens em variações de produtos.
26 lines (25 loc) • 529 B
JavaScript
const path = require('path');
module.exports = {
entry: './src/index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'foto-em-variacao.min.js',
library: 'fotoEmVariacao',
libraryTarget: 'umd',
globalObject: 'this'
},
module: {
rules: [
{
test: /\.js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env']
}
}
}
]
}
};