awwwards
Version:
awwwards API
32 lines (27 loc) • 630 B
JavaScript
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()
]
}