1
(写真提供)webpack iのチュートリアルに従っていますが、ポート8080を打つとコンポーネントテンプレートではなく、webpack -devサーバwebpack:コンポーネントテンプレートの代わりにlocalhost:8080で表示されるプロジェクト全体の構造
これは
var webpack = require("webpack");
var htmlwebpack = require('html-webpack-plugin');
//consfiguring object
module.exports = {
entry : "./src/main.ts",
output : {
path : "./dist",
filename : "app.bundle.js"
},
//out first module for ts
module : {
loaders : [
{test : /\.ts$/, loader : 'ts'}
]
},
//what extension should be look for
resolve : {
extensions : ['', '.ts','.js']
},
Plugin :[
new htmlwebpack({
template : './src/index.html'
})
]
}
あなたの 'webpack.config.js'を投稿してください。 –
更新された質問を表示 – blackHawk