Created
October 11, 2019 23:53
-
-
Save maladr0it/dc6e2af449dd2604bc101efd0690348f to your computer and use it in GitHub Desktop.
This file contains 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
Show hidden characters
{ | |
"env": { | |
"browser": true, | |
"es6": true | |
}, | |
"extends": "eslint:recommended", | |
"globals": { | |
"Atomics": "readonly", | |
"SharedArrayBuffer": "readonly" | |
}, | |
"parserOptions": { | |
"ecmaFeatures": { | |
"jsx": true | |
}, | |
"ecmaVersion": 2018, | |
"sourceType": "module" | |
}, | |
"plugins": ["react"], | |
"rules": {} | |
} |
This file contains 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
import React from "react"; | |
import "./App.scss"; | |
const App = () => { | |
return ( | |
<div className="App" /> | |
); | |
}; | |
export default App; |
This file contains 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"); | |
const HtmlWebPackPlugin = require("html-webpack-plugin"); | |
module.exports = { | |
output: { | |
path: path.resolve(__dirname, "dist"), | |
}, | |
module: { | |
rules: [ | |
{ | |
test: /\.(js|jsx)$/, | |
use: { | |
loader: "babel-loader", | |
}, | |
}, | |
{ | |
test: /\.html$/, | |
use: [ | |
{ | |
loader: "html-loader", | |
}, | |
], | |
}, | |
{ | |
test: /\.s[ac]ss$/i, | |
use: ["style-loader", "css-loader", "sass-loader"], | |
}, | |
{ | |
test: /\.css$/i, | |
use: ["style-loader", "css-loader"], | |
}, | |
], | |
}, | |
resolve: { | |
extensions: ["*", ".js", ".jsx"], | |
}, | |
plugins: [ | |
new HtmlWebPackPlugin({ | |
template: "./src/index.html", | |
filename: "./index.html", | |
}), | |
], | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment