使用Webpack打包时,用到Vue,进行配置,模块名名为app,配置完毕后出现 can‘t find the template “#app” 错误。
解决:
<body>
<div id="app">
<h3>{{message}}</h3>
</div>
<!-- 注意把导入的hudle即该句放到vue模块后面 -->
<script src="./dist/bundle.js"></script>
</body>
使用Webpack打包时,用到Vue,进行配置,模块名名为app,配置完毕后出现 can‘t find the template “#app” 错误。
解决:
<body>
<div id="app">
<h3>{{message}}</h3>
</div>
<!-- 注意把导入的hudle即该句放到vue模块后面 -->
<script src="./dist/bundle.js"></script>
</body>