Created
February 21, 2021 08:41
-
-
Save yurtarmehmet/6dcfcc7856f10d95ba9ca335c9b60c05 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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