first commit
This commit is contained in:
31
webpack.config.js
Normal file
31
webpack.config.js
Normal file
@@ -0,0 +1,31 @@
|
||||
var path = require("path")
|
||||
var htmlWebpackPlugin = require('html-webpack-plugin')
|
||||
module.exports={
|
||||
entry:{
|
||||
main:'./src/script/main.ts',
|
||||
},
|
||||
output:{
|
||||
|
||||
filename:'js/[name].js',
|
||||
path: path.resolve(__dirname, './dist'),
|
||||
// publicPath:'http://www.qq.com'
|
||||
},
|
||||
resolve: {
|
||||
extensions: [".ts", ".tsx", ".js"]
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
|
||||
{ test: /\.tsx?$/, loader: "ts-loader" }
|
||||
]
|
||||
},
|
||||
plugins:[
|
||||
new htmlWebpackPlugin(
|
||||
{ filename:'index.html',
|
||||
template:'index.html',
|
||||
|
||||
}
|
||||
)
|
||||
]
|
||||
|
||||
}
|
Reference in New Issue
Block a user