Skip to content

Image path needs to go into the bootstrap loader config file #7

@justin808

Description

@justin808

If you refer to images in the bootstrap-loader files, they are not found because there's no default for the image path.

We need to uncomment this line in

https://github.com/justin808/react-webpack-rails-tutorial/blob/master/webpack/bootstrap-sass.config.js

 // Default for the style loading is to put in your js files // styleLoader: "style-loader!css-loader!sass-loader"; 

And it needs to contain the imagePath like this:

https://github.com/justin808/react-webpack-rails-tutorial/blob/master/webpack/webpack.common.config.js

 module: { loaders: [ { test: /\.scss$/, loader: "style!css!sass?outputStyle=expanded&imagePath=/assets/images"}, 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions