Skip to content

Commit

Permalink
Rename files to demo.*
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonXLF committed Jan 7, 2024
1 parent 9225e6b commit 1896961
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions demo/src/index.html → demo/src/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<head>
<title>c-tiny Demo</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="index.css">
<link rel="stylesheet" href="demo.css">
</head>
<body>
<script src="index.js"></script>
<script src="demo.js"></script>
</body>
</html>
File renamed without changes.
10 changes: 7 additions & 3 deletions demo/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,20 @@ import CopyPlugin from 'copy-webpack-plugin';
export default [
{
entry: {
index: './src/index.js',
demo: './src/demo.js',
},
mode: 'development',
plugins: [
new CopyPlugin({
patterns: [
{
from: './src/index.{html,css}',
to: '[name][ext]',
from: './src/demo.css',
to: 'demo.css',
},
{
from: './src/demo.html',
to: 'index.html',
}
],
}),
],
Expand Down

0 comments on commit 1896961

Please sign in to comment.