Skip to content

Commit 7616e8f

Browse files
authored
Merge pull request #25 from ergonode/release-1.2.0
release 1.2.0
2 parents 78daa21 + 24bbdab commit 7616e8f

File tree

3 files changed

+940
-825
lines changed

3 files changed

+940
-825
lines changed

nuxt.config.js

+14-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright © Bold Brand Commerce Sp. z o.o. All rights reserved.
44
* See LICENSE for license details.
55
*/
6-
import { join } from 'path';
6+
import webpack from 'webpack';
77
import { keywords, description, version } from './package';
88
import modulesConfig from './modules.config';
99

@@ -68,6 +68,14 @@ module.exports = {
6868
'@ergonode/vuems',
6969
'@nuxtjs/router',
7070
],
71+
polyfill: {
72+
features: [
73+
{
74+
require: 'intersection-observer',
75+
detect: () => 'IntersectionObserver' in window,
76+
},
77+
],
78+
},
7179
modules: [
7280
'nuxt-i18n',
7381
'@nuxtjs/style-resources',
@@ -79,6 +87,7 @@ module.exports = {
7987
],
8088
'cookie-universal-nuxt',
8189
'@nuxtjs/axios',
90+
'nuxt-polyfill',
8291
],
8392
vuems: {
8493
required: modulesConfig.required,
@@ -112,6 +121,9 @@ module.exports = {
112121
baseURL: 'http://localhost:8000',
113122
},
114123
build: {
124+
plugins: [
125+
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
126+
],
115127
babel: {
116128
configFile: './babel.config.js',
117129
},
@@ -150,10 +162,6 @@ module.exports = {
150162
isDev,
151163
isClient,
152164
}) {
153-
const alias = config.resolve.alias || {};
154-
155-
alias['@Vendor'] = join(__dirname, '/vendor');
156-
157165
if (isDev) {
158166
config.devtool = isClient ? 'source-map' : 'inline-source-map';
159167
}
@@ -165,7 +173,7 @@ module.exports = {
165173
optimization: {
166174
splitChunks: {
167175
chunks: 'all',
168-
maxSize: 200000,
176+
maxSize: 249856,
169177
},
170178
},
171179
},
@@ -183,7 +191,6 @@ module.exports = {
183191
SHOW_RELEASE_INFO: process.env.SHOW_RELEASE_INFO || false,
184192
LEAVE_TEST_TAG_ATTRS: process.env.LEAVE_TEST_TAG_ATTRS || true,
185193
},
186-
187194
privateRuntimeConfig: {
188195
axios: {
189196
baseURL: process.env.API_BASE_URL,

0 commit comments

Comments
 (0)