'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']
};

'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'};

    appConfig.devServer = {
      hot: false,
      inline: false,
    };

    return appConfig;
  },

  plugins: ['scss']
};

Disable client hot reloading