Skip to content

Extensions with two dots in them don't appear to work (e.g. module.less) #34

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Robbie-Cook opened this issue Nov 6, 2021 · 0 comments

Comments

@Robbie-Cook
Copy link

Steps to reproduce:

  1. Add plugin to babel config:
    [
      'file-loader',
      {
        name: '[hash].[ext]',
        extensions: ['module.less'],
        publicPath: '../public',
        outputPath: '/dist/public',
        context: '',
        limit: 0,
      },
    ],

Note that .module.less files are not processed. Adjusting config to:

    [
      'file-loader',
      {
        name: '[hash].[ext]',
        extensions: ['less'],
        publicPath: '../public',
        outputPath: '/dist/public',
        context: '',
        limit: 0,
      },
    ],

does work, however, our project has both less and module.less files in them, and it would be fantastic to preserve the extension.

i.e., I would love to have var styles = "../public/ad601f0b2f6a9b05a5f9bbf74cce6bec.module.less" as an output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant