-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replaced cra with webpack in dev react project
- Loading branch information
Showing
7 changed files
with
19,673 additions
and
40,045 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,31 @@ | ||
<div>hello</div> | ||
<section class="bg-gray-50"> | ||
<div class="mx-auto max-w-screen-xl px-4 py-32 lg:flex lg:h-screen lg:items-center"> | ||
<div class="mx-auto max-w-xl text-center"> | ||
<h1 class="text-3xl font-extrabold sm:text-5xl"> | ||
Understand User Flow. | ||
<strong class="font-extrabold text-red-700 sm:block"> Increase Conversion. </strong> | ||
</h1> | ||
|
||
<p class="mt-4 sm:text-xl sm:leading-relaxed"> | ||
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nesciunt illo tenetur fuga ducimus | ||
numquam ea! | ||
</p> | ||
|
||
<div class="mt-8 flex flex-wrap justify-center gap-4"> | ||
<a | ||
class="block w-full rounded bg-red-600 px-12 py-3 text-sm font-medium text-white shadow hover:bg-red-700 focus:outline-none focus:ring active:bg-red-500 sm:w-auto cursor-pointer" | ||
href="/get-started" | ||
> | ||
Get Started | ||
</a> | ||
|
||
<a | ||
class="block w-full rounded px-12 py-3 text-sm font-medium text-red-600 shadow hover:text-red-700 focus:outline-none focus:ring active:text-red-500 sm:w-auto cursor-pointer" | ||
href="/about" | ||
> | ||
Learn More | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</section> |
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta charset="UTF-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>React App</title> | ||
</head> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import React from 'react' | ||
import { ContentProviderReact } from 'destack' | ||
|
||
const 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
const path = require('path') | ||
const HtmlWebpackPlugin = require('html-webpack-plugin') | ||
|
||
module.exports = { | ||
mode: 'development', | ||
entry: '/src/index.js', // main js | ||
output: { | ||
path: path.resolve(__dirname, 'build'), // output folder | ||
publicPath: '/', | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.?js$/, | ||
exclude: /node_modules/, | ||
use: { | ||
loader: 'babel-loader', | ||
options: { | ||
presets: ['@babel/preset-env', '@babel/preset-react'], | ||
}, | ||
}, | ||
}, | ||
{ | ||
test: /\.css$/, | ||
use: [ | ||
'style-loader', | ||
'css-loader', // for styles | ||
], | ||
}, | ||
], | ||
}, | ||
resolve: { | ||
fallback: { crypto: false }, | ||
}, | ||
plugins: [ | ||
new HtmlWebpackPlugin({ | ||
template: './public/index.html', // base html | ||
}), | ||
], | ||
devServer: { | ||
compress: true, | ||
port: 3000, | ||
}, | ||
} |
Oops, something went wrong.