Commit aeecac87a85ddd79a129bacc0c50d4e3e7957d56
1 parent
69e3b974
rebuild webpack
Showing
2 changed files
with
3 additions
and
3 deletions
dist/audio.html
| @@ -89,6 +89,6 @@ | @@ -89,6 +89,6 @@ | ||
| 89 | <script src="https://cdn.jsdelivr.net/npm/element-plus"></script> | 89 | <script src="https://cdn.jsdelivr.net/npm/element-plus"></script> |
| 90 | <script src="https://cdn.jsdelivr.net/npm/axios@0.17.1/dist/axios.min.js"></script> | 90 | <script src="https://cdn.jsdelivr.net/npm/axios@0.17.1/dist/axios.min.js"></script> |
| 91 | <script src="https://cdn.jsdelivr.net/npm/qiniu-js@2.5.5/dist/qiniu.min.js"></script> | 91 | <script src="https://cdn.jsdelivr.net/npm/qiniu-js@2.5.5/dist/qiniu.min.js"></script> |
| 92 | -<script src="/main.c66f6ca.js"></script></body> | 92 | +<script src="/bundle.js"></script></body> |
| 93 | 93 | ||
| 94 | </html> | 94 | </html> |
| 95 | \ No newline at end of file | 95 | \ No newline at end of file |
webpack.config.js
| @@ -10,8 +10,8 @@ module.exports = { | @@ -10,8 +10,8 @@ module.exports = { | ||
| 10 | entry: path.join(__dirname,'src','/js/audios.js'), //__dirname指的是当前目录,是目录形成绝对路径 | 10 | entry: path.join(__dirname,'src','/js/audios.js'), //__dirname指的是当前目录,是目录形成绝对路径 |
| 11 | output:{ | 11 | output:{ |
| 12 | //输入的文件名 | 12 | //输入的文件名 |
| 13 | - // filename: 'bundle.js', | ||
| 14 | - filename: '[name].[hash:7].js', | 13 | + filename: 'bundle.js', |
| 14 | + // filename: '[name].[hash:7].js', | ||
| 15 | publicPath: '/', | 15 | publicPath: '/', |
| 16 | //输入的路径 webpack会自动打包生成 | 16 | //输入的路径 webpack会自动打包生成 |
| 17 | path: path.join(__dirname,'dist') | 17 | path: path.join(__dirname,'dist') |