Commit 4e63aa82 authored by Lavitr's avatar Lavitr

initial commit

parent 17d9e5ea
{
"presets": [
"env",
"react"
],
"plugins": [
"transform-object-rest-spread"
]
}
\ No newline at end of file
node_modules
dist
.eslintrc.js
This source diff could not be displayed because it is too large. You can view the blob instead.
import React from 'react'
const App = () => (
<div>
<p>Hello React</p>
</div>
)
export default App;
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>React HTML template</title>
</head>
<body>
<div id="root"></div>
</body>
</html>
import React from 'react'
import { render } from 'react-dom'
import App from "./components/App";
render(
<App/>,
document.getElementById('root')
)
\ No newline at end of file
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
plugins: [
new HtmlWebpackPlugin({
template: "./src/index.html",
})
],
devtool: 'inline-source-map',
module: {
rules: [
{ test: /\.css$/, use:['style-loader', 'css-loader']},
{ test: /\.js$/, exclude: /node_modules/, loader: "babel-loader" },
{
test: /\.html$/,
use: [
{
loader: "html-loader",
options: { minimize: true }
}
]
}
]
}
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment