1234567891011121314151617181920212223242526272829 |
- var webpack = require("webpack");
- module.exports = {
- entry: {
- "rss-parser": "./index.js"
- },
- output: {
- path: __dirname,
- filename: "dist/[name].js",
- libraryTarget: 'umd',
- globalObject: 'this',
- library: 'RSSParser'
- },
- resolve: {
- extensions: ['.js']
- },
- devtool: 'source-map',
- module: {
- rules: [{
- test: /\.js$/,
- loader: 'babel-loader?presets[]=@babel/preset-env',
- }]
- },
- externals: {
- xmlbuilder:'xmlbuilder'
- },
- node: {
- fs: "empty"
- }
- }
|