webpack.config.js
module.exports = {
entry: "./entry.js",
output: {
path: __dirname,
filename: "bundle.js"
},
module: {
loaders: [
{ test: /\.css$/, loader: "style-loader!css-loader" },
{
test: /\.(ttf|eot|jpg|svg|png|woff(2)?)(\?[a-z0-9=&.-]+)?$/,
loader: 'file-loader?name=assets/[name].[hash].[ext]'
},
],
}
};
entry.js
require("./node_modules/bootstrap/dist/css/bootstrap.min.css");
require("./node_modules/bootstrap/dist/css/bootstrap-theme.min.css");
require("./node_modules/jquery/dist/jquery.min.js");
require("./node_modules/bootstrap/dist/js/bootstrap.min.js");
Error
Uncaught Error: Bootstrap's JavaScript requires jQuery
порядок подключения правильный, если подключать обычным методом, то работает