question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Request] To make Rider understand webpack config file

See original GitHub issue

If I have this section in quasar.conf.js

  extendWebpack (cfg) {
        cfg.resolve.modules.push(path.resolve('./src'));
        cfg.resolve.modules.push(path.resolve('./src/modules'));
        cfg.resolve.modules.push(path.resolve('./src/components'));
        cfg.resolve.modules.push(path.resolve('./src/services'));
      }
    },

Webpack resolver pathes with this definotions. To make Rider understand pathes I made this file manualy.

'use strict'

const path = require('path')

module.exports = {
  resolve: {
    modules: [
      path.resolve(__dirname, './src'),
      path.resolve(__dirname, './src/modules'),
      path.resolve(__dirname, './src/components'),
      path.resolve(__dirname, './src/services')
    ]
  }
}

And this is no problem. But may be to make it inside ide-helper? Or not directly this but make full compiled webpack configuration file to make Rider understand all connecting webpack config?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
DmitrijOkeanijcommented, Mar 15, 2019

So I think the best way is just to generate webpack.conf.js in root dir, and notify user that this file is not for configuring build process but to help Idea, and to show webpack result for user purposes.

0reactions
panstromekcommented, Sep 26, 2019

I think this is done (for the next release) - I couldn’t actually find where Idea stores the setting for the webpack config, seems like there is no mention of it in .idea folder.

I guess I’ll just add a notice for user to set it manually (I don’t feel right about messing around with .idea folder anyway - it’s internal to for the IDE and it’s structure and format can change at any time)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webpack | JetBrains Rider Documentation
Create one or several configuration files depending on your project structure: select a parent folder in the Project tool window and select New ......
Read more >
Configuration - webpack
createapp.dev is an online tool for creating custom webpack configurations. It allows you to select various features that will be combined and added...
Read more >
How to configure Webpack 4 or 5 from scratch for a basic ...
1. Install Webpack. We use npm: $ npm init command to create a package.json file in a project folder where we will put...
Read more >
Webpack Quick Start - Rider Theme | Keenthemes
The main webpack build config file is located in tools/webpack.config.js and you can fully customize the build settings to meet your project requirements....
Read more >
Is Vite Better than Webpack? - Bits and Pieces
Webpack is a bundler-based build tool, which means that to serve your application ... and concatenate your application's entire JavaScript file.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found