Skip to content

Instantly share code, notes, and snippets.

@yurtarmehmet
Created February 21, 2021 08:41
Show Gist options
  • Select an option

  • Save yurtarmehmet/6dcfcc7856f10d95ba9ca335c9b60c05 to your computer and use it in GitHub Desktop.

Select an option

Save yurtarmehmet/6dcfcc7856f10d95ba9ca335c9b60c05 to your computer and use it in GitHub Desktop.
const path = require("path");
module.exports = {
"mode": "none",
"entry": "./src/index.js",
"output": {
"path": __dirname + "/dist",
"filename": "bundle.js"
},
devServer: {
contentBase: path.join(__dirname, 'dist')
},
"module": {
"rules": [{
"test": /\.css$/,
"use": [
"style-loader",
"css-loader"
]
},
{
"test": /\.js$/,
"exclude": /node_modules/,
"use": [{
"loader": "babel-loader",
"options": {
"presets": [
"@babel/preset-env"
]
}
}]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment