Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

[custom visual] where is the webpack config file?

Hi, 

 

where is the webpack config file of a custom visual located? I'm in need of disabling the `compact` option of the Babel compiler

 

thanks a lot

 

 

  • Hi Anonymous,

    To answer your specific question, the webpack configuration is stored wherever your global node_modules are installed; on Windows this is typically %AppData%\Roaming\npm\node_modules\powerbi-visuals-tools\lib\webpack.config.js.

    However, changing the default webpack configuration isn't currently supported within powerbi-visuals-tools.

    The team offers powerbi-visuals-webpack-plugin for you to set up your own webpack configuration and configure it for a visuals project.

    Regards,

    Daniel

     

1 Reply

  • dm-p's avatar
    dm-p
    Icon for Super User rankSuper User

    Hi Anonymous,

    To answer your specific question, the webpack configuration is stored wherever your global node_modules are installed; on Windows this is typically %AppData%\Roaming\npm\node_modules\powerbi-visuals-tools\lib\webpack.config.js.

    However, changing the default webpack configuration isn't currently supported within powerbi-visuals-tools.

    The team offers powerbi-visuals-webpack-plugin for you to set up your own webpack configuration and configure it for a visuals project.

    Regards,

    Daniel