Your IP : 216.73.216.79


Current Path : /var/www/html/elibrary/node_modules/vuesax/build/components/
Upload File :
Current File : /var/www/html/elibrary/node_modules/vuesax/build/components/webpack.components.js

const path = require('path')
var Components = require('./components.json');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const baseWebpackConfig = require('../webpack.base.js')
const merge = require('webpack-merge')

delete Components.newComponent

module.exports = merge(baseWebpackConfig, {
    entry: Components,
    output: {
      filename: '[name]/index.js',
      path: path.resolve(process.cwd(), 'dist'),
      publicPath: '/dist/',
      library: '[name]',
      libraryTarget: 'umd',
      libraryExport: 'default',
      globalObject: 'typeof self !== \'undefined\' ? self : this'
    },
    plugins:[
      new MiniCssExtractPlugin({
        filename: '[name]/style.css',
      })
    ]
})