aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-11-11 18:16:38 +0300
committerGravatar Vitaly Takmazov2018-11-11 18:16:38 +0300
commitc1e3de650281981413d38df6ea9f24559812b86e (patch)
treea4f94bbe07b68a8816f21943d226cc8de733161b
parent642405b4fcff93e57ee1b4a943a9d4beca5cef27 (diff)
webpack: single chunk
-rw-r--r--.browserslistrc3
-rw-r--r--package.json3
-rw-r--r--webpack.config.js12
3 files changed, 11 insertions, 7 deletions
diff --git a/.browserslistrc b/.browserslistrc
index 4e36fc0e..a28760d1 100644
--- a/.browserslistrc
+++ b/.browserslistrc
@@ -1,5 +1,4 @@
last 4 versions
ie >= 9
-android >= 4.2
-chrome >= 37
+android >= 2.3
firefox >= 48
diff --git a/package.json b/package.json
index 4aa6a38b..a621bfe4 100644
--- a/package.json
+++ b/package.json
@@ -16,7 +16,8 @@
[
"@babel/preset-env",
{
- "useBuiltIns": "usage"
+ "useBuiltIns": "usage",
+ "debug": true
}
]
]
diff --git a/webpack.config.js b/webpack.config.js
index d45d6a11..18db4ec5 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -9,20 +9,24 @@ module.exports = (env, argv) => {
devtool: dev ? 'source-map' : false,
entry: {
'scripts': [
+ 'core-js/modules/es6.array.index-of',
+ 'core-js/modules/es6.array.iterator',
'core-js/modules/es6.array.map',
+ 'core-js/modules/es6.function.name',
'core-js/modules/es6.object.create',
'core-js/modules/es6.object.define-property',
+ 'core-js/modules/es6.object.keys',
'core-js/modules/es6.object.set-prototype-of',
'core-js/modules/es6.promise',
+ 'core-js/modules/es6.regexp.split',
'core-js/modules/es6.symbol',
'core-js/modules/web.dom.iterable',
+ 'url-polyfill',
'whatwg-fetch',
__dirname + '/src/main/assets/scripts.js',
- require.resolve('evil-icons/assets/evil-icons.js')
- ],
- 'style': [
__dirname + '/src/main/assets/style.css',
- require.resolve('evil-icons/assets/evil-icons.css')
+ require.resolve('evil-icons/assets/evil-icons.css'),
+ require.resolve('evil-icons/assets/evil-icons.js')
]
},
output: {