我正在Windows 10上使用webpack2构建vue.js
应用程序,问题在于生成的路径:
<script type="text/javascript" src="\js\main.js"></script>
而不是:
<script type="text/javascript" src="/js/main.js"></script>
html-webpack-plugin
配置:
new HtmlWebpackPlugin({
filename: "index.html",
template: "src/html/index.html",
inject: true,
chunksSortMode: "dependency"
})
Thanx提前获得任何帮助,