text: const path = require('path');
  const webpack = require('webpack');
  const VueLoaderPlugin = require('vue-loader/lib/plugin');
  
  module.exports = {
    output: {
      path: path.resolve(__dirname, 'dist'),
      filename: 'smart-gift.bundle.js',
      library: 'SmartGift',
      libraryTarget: 'umd',
    },
    devtool: false,
    resolve: {
      alias: {
        vue$: 'vue/dist/vue.runtime.esm.js',
        '@': path.resolve(__dirname, 'src/'),
      },
    },
    module: {
      rules: [
        {
          test: /\.js$/,
          use: {
            loader: 'babel-loader',
          },
          exclude: file => (
            /node_modules/.test(file)
            && !/\.vue\.js/.test(file)
          ),
        },
        {
          test: /\.scss$/,
          use: [
            'vue-style-loader',
            {
              loader: 'css-loader',
              options: { importLoaders: 1 },
            },
            'postcss-loader',
            {
              loader: 'sass-loader',
              options: {
                data: '@import "@/variables.scss";',
              },
            },
          ],
        },
        {
          test: /\.vue$/,
          loader: 'vue-loader',
        },
      ],
    },
    plugins: [
      new webpack.SourceMapDevToolPlugin({}),
      new VueLoaderPlugin(),
    ],
  };
  