Skip to content

Commit

Permalink
docs: Update code
Browse files Browse the repository at this point in the history
  • Loading branch information
nuintun committed Dec 26, 2024
1 parent 15e8390 commit e2b0d3a
Show file tree
Hide file tree
Showing 5 changed files with 202 additions and 53 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ image.addEventListener('load', () => {
}
});

image.src = 'https://nuintun.github.io/qrcode/packages/examples/src/images/qrcode.jpg';
image.src = 'https://nuintun.github.io/qrcode/public/images/qrcode.jpg';
```

### Links
Expand Down
2 changes: 1 addition & 1 deletion packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ image.addEventListener('load', () => {
}
});

image.src = 'https://nuintun.github.io/qrcode/packages/examples/src/images/qrcode.jpg';
image.src = 'https://nuintun.github.io/qrcode/public/images/qrcode.jpg';
```

### Links
Expand Down
4 changes: 3 additions & 1 deletion packages/examples/app.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

import path from 'node:path';
import CopyWebpackPlugin from 'copy-webpack-plugin';

const js = path.resolve('app/js');
const css = path.resolve('app/css');
Expand All @@ -23,5 +24,6 @@ export default {
entryHTML: path.resolve('wwwroot/index.html'),
favicon: path.resolve('app/images/favicon.ico'),
alias: { '/js': js, '/css': css, '/images': images },
meta: { viewport: 'width=device-width,initial-scale=1.0' }
meta: { viewport: 'width=device-width,initial-scale=1.0' },
plugins: [new CopyWebpackPlugin({ patterns: [{ from: 'images/qrcode.jpg', to: 'images/qrcode.jpg' }] })]
};
1 change: 1 addition & 0 deletions packages/examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"browserslist": "^4.24.3",
"bufferutil": "^4.0.8",
"case-sensitive-paths-webpack-plugin": "^2.4.0",
"copy-webpack-plugin": "^12.0.2",
"css-loader": "^7.1.2",
"css-minimizer-webpack-plugin": "7.0.0",
"css-modules-types-loader": "^0.6.2",
Expand Down
Loading

0 comments on commit e2b0d3a

Please sign in to comment.