1
I’m having trouble implementing the bootstrap-Loader in the webpack. I get this error output on the console:
ERROR in . /~/css-Loader!. /~/resolve-url-Loader!. /~/Sass-Loader? sourceMap!. /~/bootstrap-Loader/lib/bootstrap.styles.Loader.js!. /~/bootstrap-Loader/no-op.js Module build failed: Undefined File to import not found or unreadable: .. /.. /app/Assets/Styles/bootstrap/pre-customizations.scss Parent style sheet: stdin in C: Users Rapha Projects Components node_modules bootstrap-Loader no-op.js (line 2, column 1) @ . /~/style-Loader!. /~/css-Loader!. /~/resolve-url-Loader!. /~/Sass-Loader? sourceMap!. /~/bootstrap-Loader/lib/bootstrap.styles.Loader.js!. /~/bootstrap-Download/no-op.js 4:14-164
This is my webpack.config.js file:
'use strict'
const webpack = require('webpack')
const path = require('path')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const autoprefixer = require('autoprefixer')
module.exports = {
devtool: 'source-map',
entry: [
'bootstrap-loader',
path.join(__dirname, 'src', 'app')
],
output: {
path: path.join(__dirname, 'dist'),
filename: 'bundle.js',
publicPath: '/static/'
},
module: {
loaders: [{
test: /\.js$/,
exclude: /node_modules/,
include: /src/,
loader: 'babel'
}, {
test: /\.css$/,
loaders: ['style', 'css', 'postcss']
}, {
test: /\.scss$/,
loaders: ['style', 'css', 'postcss', 'sass']
}, {
test: /bootstrap-sass\/assets\/javascripts\//,
loader: 'imports?jQuery=jquery'
}]
},
postcss: [autoprefixer]
}
Any idea what it might be?