mirror of
https://github.com/valitydev/checkout.git
synced 2024-11-06 18:45:24 +00:00
16 lines
479 B
JavaScript
16 lines
479 B
JavaScript
const helpers = require('./helpers');
|
|
const ExtractTextPlugin = require('extract-text-webpack-plugin');
|
|
|
|
const prepareOutputConfig = (outputPath, jsFilenamePattern = '[name]', cssFilenamePattern = '[name]') => ({
|
|
output: {
|
|
filename: `${jsFilenamePattern}.js`,
|
|
path: helpers.root(outputPath),
|
|
publicPath: './'
|
|
},
|
|
plugins: [
|
|
new ExtractTextPlugin({filename: `${cssFilenamePattern}.css`})
|
|
]
|
|
});
|
|
|
|
module.exports = prepareOutputConfig;
|