UNPKG

955 BJavaScriptView Raw
1"use strict";
2
3const webpack = require( "webpack" );
4const UglifyJsPlugin = webpack.optimize.UglifyJsPlugin;
5const ModuleConcatenationPlugin = webpack.optimize.ModuleConcatenationPlugin;
6
7module.exports = {
8 "entry": "./filled.support.js",
9 "resolve": {
10 "descriptionFiles": [
11 "bower.json",
12 "package.json"
13 ],
14 "modules": [
15 "bower_components",
16 "node_modules"
17 ],
18 "mainFields": [
19 "support",
20 "browser",
21 "module",
22 "main"
23 ]
24 },
25 "module": {
26 "rules": [
27 {
28 "test": /\.support\.js$/,
29 "loader": "source-map-loader",
30 "enforce": "pre"
31 }
32 ]
33 },
34 "output": {
35 "library": "filled",
36 "libraryTarget": "umd",
37 "filename": "filled.deploy.js"
38 },
39 "plugins": [
40 new UglifyJsPlugin( {
41 "compress": {
42 "keep_fargs": true,
43 "keep_fnames": true,
44 "warnings": false
45 },
46 "comments": false,
47 "sourceMap": true,
48 "mangle": false
49 } ),
50 new ModuleConcatenationPlugin( )
51 ],
52 "devtool": "#source-map"
53};