const path = require('path')

module.exports = ({ actions }) => {
  actions.setWebpackConfig({
    resolve: {
      alias: {
        '@components': path.resolve(__dirname, '../../components/'),
        '@icons': path.resolve(__dirname, '../../icons/'),
        '@styles': path.resolve(__dirname, '../../styles/'),
        '@utils': path.resolve(__dirname, '../../utils/'),
        '@types': path.resolve(__dirname, '../../types/'),
        '@assets': path.resolve(__dirname, '../../assets/'),
        '@sections': path.resolve(__dirname, '../../sections/'),
      },
      extensions: ['.js', '.json', '.ts', '.tsx'],
    },
  })
}

const path = require('path')

module.exports = ({ actions }) => {
  actions.setWebpackConfig({
    devtool: process.env.NODE_ENV !== 'production',
    resolve: {
      alias: {
        '@components': path.resolve(__dirname, '../../components/'),
        '@icons': path.resolve(__dirname, '../../icons/'),
        '@styles': path.resolve(__dirname, '../../styles/'),
        '@utils': path.resolve(__dirname, '../../utils/'),
        '@types': path.resolve(__dirname, '../../types/'),
        '@assets': path.resolve(__dirname, '../../assets/'),
        '@sections': path.resolve(__dirname, '../../sections/'),
      },
      extensions: ['.js', '.json', '.ts', '.tsx'],
    },
  })
}

Set webpack devtool to false in production
Set webpack devtool to false in production
