From a0241fe4a50d747a4acc87ac5cf17dbb501425c5 Mon Sep 17 00:00:00 2001 From: kozmanbalint Date: Mon, 25 Nov 2019 11:34:47 +0100 Subject: [PATCH] workaround swiper 'fs' require, when used with f7-vue and lazy modules --- create-app/templates/generate-webpack-config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/create-app/templates/generate-webpack-config.js b/create-app/templates/generate-webpack-config.js index a7f08b5..3576f7d 100644 --- a/create-app/templates/generate-webpack-config.js +++ b/create-app/templates/generate-webpack-config.js @@ -87,6 +87,9 @@ module.exports = (options) => { '@': resolvePath('src'), }, }, + node: { + fs: 'empty' + }, devtool: env === 'production' ? ${productionDevtool} : ${developmentDevtool}, devServer: { hot: true,