UNPKG

awwwards

Version:
32 lines (27 loc) 630 B
const path = require('path'); const UnminifiedWebpackPlugin = require('unminified-webpack-plugin'); module.exports = { target: 'node', entry: './src/awwwards.js', output: { libraryTarget: 'commonjs2', libraryExport: 'default', filename: 'awwwards.min.js', path: path.resolve(__dirname, 'lib') }, module: { rules: [ { test: /\.js$/, use: ['babel-loader'] }, ] }, externals: { axios: 'axios', cheerio: 'cheerio' }, plugins: [ new UnminifiedWebpackPlugin() ] }