CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
webpack.config.js36 linesDownload Raw Back to layout-base
1const path = require('path');2const pkg = require('./package.json');3const camelcase = require('camelcase');4const process = require('process');5const webpack = require('webpack');6const env = process.env;7const NODE_ENV = env.NODE_ENV;8const MIN = env.MIN;9const PROD = NODE_ENV === 'production';10 11let config = {12  devtool: PROD ? false : 'inline-source-map',13  entry: './index.js',14  output: {15    path: path.join( __dirname ),16    filename: 'layout-base.js',17    library: camelcase( pkg.name ),18    libraryTarget: 'umd'19  },20  module: {21    rules: [22      { test: /\.js$/, exclude: /node_modules/, use: 'babel-loader' }23    ]24  },25  plugins: MIN ? [26    new webpack.optimize.UglifyJsPlugin({27      compress: {28        warnings: false,29        drop_console: false,30      }31    })32  ] : []33};34 35module.exports = config;36 
basant307/AI_Governance_Project · CoolFace