'use strict';

const path = require('path');

module.exports = {
  modify(config, { target, dev }, webpack) {
    const appConfig = Object.assign({}, config);

    appConfig.resolve.alias = {
      components: path.resolve(__dirname, './src/components'),
      mutations: path.resolve(__dirname, './src/mutations'),
      utils: path.resolve(__dirname, './src/utils'),
    };

    if (target === 'web')
      appConfig.node = {fs: 'empty'};

    return appConfig;
  },

  plugins: ['scss']
};

@@ -431,24 +431,99 @@
  'empty'%7D;%0A%0A
+    appConfig.devServer = %7B%0A      hot: false,%0A      inline: false,%0A    %7D;%0A%0A
     return a

Disable client hot reloading