mirror of
https://github.com/valitydev/checkout.git
synced 2024-11-06 10:35:20 +00:00
14 lines
469 B
JavaScript
14 lines
469 B
JavaScript
const helpers = require('./helpers');
|
|
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
|
|
const prepareOutputConfig = (outputPath, jsFilenamePattern = '[name]', cssFilenamePattern = '[name]') => ({
|
|
output: {
|
|
filename: `${jsFilenamePattern}.js`,
|
|
path: helpers.root(outputPath),
|
|
publicPath: './'
|
|
},
|
|
plugins: [new MiniCssExtractPlugin({ filename: `${cssFilenamePattern}.css` })]
|
|
});
|
|
|
|
module.exports = prepareOutputConfig;
|