use bundle.js.map
This commit is contained in:
parent
74a4d01fcc
commit
541de21e66
@ -35,9 +35,12 @@ async function main(){
|
||||
});
|
||||
router.get('/dist/js/bundle.js',async (ctx,next)=>{
|
||||
ctx.type = "js";
|
||||
//ctx.set("","");
|
||||
ctx.body = createReadStream("dist/js/bundle.js");
|
||||
});
|
||||
router.get('/dist/js/bundle.js.map',async (ctx,next)=>{
|
||||
ctx.type = "text";
|
||||
ctx.body = createReadStream("dist/js/bundle.js.map");
|
||||
});
|
||||
router.get('/doc/:rest(.*)'
|
||||
,async (ctx,next)=>{
|
||||
ctx.type = "html";
|
||||
|
@ -26,6 +26,7 @@ module.exports = ()=>{return {
|
||||
new MiniCssExtractPlugin({
|
||||
"filename":'../css/style.css'})
|
||||
],
|
||||
devtool: 'source-map',
|
||||
resolve: {
|
||||
extensions: ['.js','.css','.ts','.tsx']
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user