iso-countries-languages/webpack.config.js

21 lines
427 B
JavaScript
Raw Normal View History

var path = require('path');
var webpack = require('webpack');
module.exports = {
2020-07-24 03:19:26 +02:00
target: 'node',
mode: 'production',
entry: './src/index.js',
2019-02-01 23:22:13 +01:00
resolve: {
2020-07-24 03:19:26 +02:00
extensions: ['.js', '.json'],
2019-02-01 23:22:13 +01:00
},
output: {
2020-07-24 03:19:26 +02:00
path: path.resolve(__dirname, 'lib'), // string
filename: 'iso-countries-languages.js',
library: 'IsoCountriesLanguages',
2020-07-24 03:19:26 +02:00
libraryTarget: 'umd',
},
2020-07-24 03:19:26 +02:00
plugins: [],
module: {},
externals: [],
};