dev-server, my webpack will build my bundle which includes jquery.
I use html-webpack-plugin, the line of code below will inject my bundle in the body when build prod.
new HtmlWebPackPlugin({
template: './src/index.html'
}),
My problem is, in my index.html, I semantic-ui.js, which depends on Jquery,
<body>
<my-app>loading...thaison</my-app>
<script src="./asset/semantic-ui/dist/semantic.min.js"></script>
</body>
So when I fire my dev environment or prod build, the bundle appears after semantic hence i have an error. How do I make is so that the dev injection happens before my manual script source?
dev server serve:
webpack-dev-server --inline --progress --port 4000 --content-base src