Skip to content

Instantly share code, notes, and snippets.

@maladr0it
Created October 11, 2019 23:53
Show Gist options
  • Save maladr0it/dc6e2af449dd2604bc101efd0690348f to your computer and use it in GitHub Desktop.
Save maladr0it/dc6e2af449dd2604bc101efd0690348f to your computer and use it in GitHub Desktop.
{
"env": {
"browser": true,
"es6": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["react"],
"rules": {}
}
import React from "react";
import "./App.scss";
const App = () => {
return (
<div className="App" />
);
};
export default App;
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