Im following the instrtuctions on the bootstrap-sass-loader page
in my package.json I got
"bootstrap-sass": "^3.3.6",
"bootstrap-sass-loader": "^1.0.9"
this is my webpack.config.js
module.exports = {
entry: ['./app.js'],
output: {
publicPath: 'http://localhost:8080/',
filename: 'build/bundle.js'
},
devtool: 'eval',
module: {
/* used on code before it's transformed */
preLoaders: [
{
test: /\.jsx?$/,
exclude: /(node_modules)/,
loader: 'source-map'
}
],
/* used to modify code */
loaders: [
{test: /bootstrap\/js\//, loader: 'imports?jQuery=jquery'},
{test: /\.obj|\.mtl|\.html|\.dae|\.txt/, loader: "raw"},
{test: /\.jsx?$/, exclude: /(node_modules)/, loader: 'babel'},
{test: /\.css$/, loader: 'style-loader!css-loader'},
{test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, loader: "file"},
{test: /\.(woff|woff2)(\?v=\d+\.\d+\.\d+)?$/, loader: 'url?limit=10000&mimetype=application/font-woff'},
{test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=application/octet-stream"},
{test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, loader: "url?limit=10000&mimetype=image/svg+xml"},
{
test: /\.scss$/,
/* order from bottom to top, so first sass, autoprefix, css and finally style */
loaders: ['style', 'css', 'autoprefixer?browsers=last 3 versions', 'sass?outputStyle=expanded']
},
{
test: /\.(jpe?g|png|gif|svg)$/i,
loaders: ['url?limit=8192', 'img']
},
{
test: /\.jsx?$/,
exclude: /(node_modules)/,
loader: 'babel'
}
],
/* used to modify generated code */
postLoader: []
}
};
as far as I understand I just have to use
require("bootstrap-sass-loader");
in my app.js
and be done. but I cannot use any bootstrap styles. what am I missing here?