diff options
Diffstat (limited to 'cypress/plugins/index.js')
-rw-r--r-- | cypress/plugins/index.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/cypress/plugins/index.js b/cypress/plugins/index.js index d9762fcd2..6a2be1cea 100644 --- a/cypress/plugins/index.js +++ b/cypress/plugins/index.js @@ -13,13 +13,10 @@ const browserify = require('@cypress/browserify-preprocessor') const webpack = require('@cypress/webpack-preprocessor') -const defaults = webpack.defaultOptions +const webpackOptions = require('@nextcloud/webpack-vue-config') module.exports = (on, config) => { on('file:preprocessor', browserify()) - defaults.webpackOptions.module.rules.push({ - test: /\.md/, - type: 'asset/source', - }) - on('file:preprocessor', webpack(defaults)) + webpackOptions.module.rules.push({ test: /\.md/, type: 'asset/source' }) + on('file:preprocessor', webpack({webpackOptions})) } |