melMass / craco-raw-loader

This is a craco plugin that makes it easy to use the webpack raw-loader with create-react-app version >= 2.
MIT License
3 stars 2 forks source link

the example 'craco.config.js' not work #2

Closed frru closed 3 years ago

frru commented 3 years ago

After I delete the webpack property, it work.

Solo-Digital commented 3 years ago

Yeah, it seems "plugins [...." goes outside the "webpack" object (if you have one in the config).

e.g. module.exports = { webpack: { alias: { "@": path.resolve(__dirname, "src/"), }, }, plugins: [ { plugin: rawLoader, options: { test: /\.md$/i, exclude: /node_modules/, }, }, ], };

melMass commented 3 years ago

Should be solved by #1, don't hesitate to reopen if you have any other issues. For some reason, I was not receiving any notifications from the repository.