This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.
reValuate/node_modules/xml-js/webpack.config.js

29 lines
653 B
JavaScript
Raw Permalink Normal View History

2021-04-02 02:24:13 +03:00
const path = require('path');
const webpack = require('webpack');
const UnminifiedWebpackPlugin = require('unminified-webpack-plugin');
module.exports = {
entry: {
'dist': './lib/index.js',
'doc': './lib/index.js'
},
output: {
path: path.resolve(__dirname, '.'),
filename: '[name]/xml-js.min.js',
libraryTarget: 'window',
// library: 'xmljs' // don't specify this
},
// module: {
// rules: [
// {
// test: /\.(js)$/,
// use: 'babel-loader'
// }
// ]
// },
plugins: [
new webpack.optimize.UglifyJsPlugin(),
new UnminifiedWebpackPlugin()
]
}