text: const path = require("path");
  
  module.exports = (env) => {
  	return {
  		entry: "./src/index.js",
  		output: {
  			filename: "main.js",
  			path: path.resolve(__dirname, "dist")
  		},
  		module: {
  			rules: [
  				{
  					test: /\.js$/,
  					exclude: /node_modules/,
  					use: {
  						loader: "babel-loader",
  						options: {
  							presets: ["@babel/preset-env"]
  						}
  					}
  				},
  				{
  					test: /\.css$/,
  					use: [ "style-loader", "css-loader" ]
  				}
  			]
  		},
  		devtool: env.production?false:"inline-source-map",
  		devServer: {
  			contentBase: "./dist"
  		}
  	};
  };
  