Skip to content

Commit

Permalink
tweak config. docs
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamTyler committed Mar 17, 2023
1 parent 8a05152 commit ccf6488
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 36,448 deletions.
3 changes: 1 addition & 2 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": ["react-refresh/babel"]
"presets": ["@babel/preset-env", "@babel/preset-react"]
}
2 changes: 1 addition & 1 deletion config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = {
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env'],
presets: ['@babel/preset-env', '@babel/preset-react'],
plugins: ['react-refresh/babel'],
},
},
Expand Down
6 changes: 3 additions & 3 deletions config/webpack.config.docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ const { resolve } = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin')

module.exports = {
mode: 'none',
mode: 'production',
devtool: 'inline-source-map',
entry: ['./index.js'],
entry: './index.js',
output: {
filename: 'bundle.js',
path: resolve(__dirname, '../docs'),
Expand All @@ -21,7 +21,7 @@ module.exports = {
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env'],
presets: ['@babel/preset-env', '@babel/preset-react'],
},
},
exclude: /node_modules/,
Expand Down
9 changes: 2 additions & 7 deletions config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,14 @@ module.exports = {
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env'],
presets: ['@babel/preset-env', '@babel/preset-react'],
},
},
exclude: /node_modules/,
},
{
test: /\.(css|scss)$/,
use: [
MiniCssExtractPlugin.loader,
'css-loader',
'postcss-loader',
'sass-loader',
],
use: [MiniCssExtractPlugin.loader, 'css-loader', 'postcss-loader', 'sass-loader'],
},
],
},
Expand Down
36,357 changes: 3 additions & 36,354 deletions docs/bundle.js

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions docs/bundle.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
83 changes: 2 additions & 81 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,4 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>React Dice Complete</title>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css"
integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ"
crossorigin="anonymous"
/>
<link rel="icon" href="./die-icon.png" />
<style type="text/css">
.dice-test > .row {
<!doctype html><html lang="en"><head><title>React Dice Complete</title><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous"/><link rel="icon" href="./die-icon.png"/><style>.dice-test > .row {
margin-bottom: 20px;
}
.sk-cube-grid {
Expand Down Expand Up @@ -117,66 +100,4 @@
.display-2 {
font-size: 3.5rem;
}
}
</style>
<script defer src="./bundle.js"></script></head>
<body>
<div class="jumbotron">
<div class="container">
<h1 class="display-2 text-primary">React Dice Complete 🎲</h1>
<p class="lead">
The flexible and amazing dice rolling library build with
<a href="http://facebook.github.io/react/" target="_blank">React</a>
</p>
</div>
</div>
<div class="littletron">
<div class="container">
<a
href="https://github.com/AdamTyler/react-dice-complete"
class="page-subheader__link"
target="_blank"
>Code and Docs on GitHub</a
>
<span class="page-subheader__button">
<a
class="github-button"
href="https://github.com/AdamTyler/react-dice-complete"
data-style="mega"
aria-label="Star AdamTyler/react-dice on GitHub"
>Star</a
>
</span>
</div>
</div>
<main class="container" id="app"></main>
<footer class="footer">
<div class="container">
<span class="text-muted"
>Copyright ©
<a href="http://adam-tyler.com" target="_blank">Adam Tyler</a>
<script>
document.write(new Date().getFullYear())
</script>
. ISC Licensed.</span
>
</div>
</footer>
<script async defer src="https://buttons.github.io/buttons.js"></script>
<script
src="https://code.jquery.com/jquery-3.1.1.slim.min.js"
integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n"
crossorigin="anonymous"
></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js"
integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb"
crossorigin="anonymous"
></script>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js"
integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn"
crossorigin="anonymous"
></script>
</body>
</html>
}</style><script defer="defer" src="./bundle.js"></script></head><body><div class="jumbotron"><div class="container"><h1 class="display-2 text-primary">React Dice Complete 🎲</h1><p class="lead">The flexible and amazing dice rolling library build with <a href="http://facebook.github.io/react/" target="_blank">React</a></p></div></div><div class="littletron"><div class="container"><a href="https://github.com/AdamTyler/react-dice-complete" class="page-subheader__link" target="_blank">Code and Docs on GitHub</a> <span class="page-subheader__button"><a class="github-button" href="https://github.com/AdamTyler/react-dice-complete" data-style="mega" aria-label="Star AdamTyler/react-dice on GitHub">Star</a></span></div></div><main class="container" id="app"></main><footer class="footer"><div class="container"><span class="text-muted">Copyright © <a href="http://adam-tyler.com" target="_blank">Adam Tyler</a><script>document.write(new Date().getFullYear())</script>. ISC Licensed.</span></div></footer><script async defer="defer" src="https://buttons.github.io/buttons.js"></script><script src="https://code.jquery.com/jquery-3.1.1.slim.min.js" integrity="sha384-A7FZj7v+d/sdmMqp/nOQwliLvUsJfDHW+k9Omg/a/EheAdgtzNs3hpfag6Ed950n" crossorigin="anonymous"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script><script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js" integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn" crossorigin="anonymous"></script></body></html>

0 comments on commit ccf6488

Please sign in to comment.