Skip to content
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

Custom Feature Detection: No Such File or Directory #2350

Closed
chrisalexander55 opened this issue Jul 18, 2018 · 1 comment
Closed

Custom Feature Detection: No Such File or Directory #2350

chrisalexander55 opened this issue Jul 18, 2018 · 1 comment

Comments

@chrisalexander55
Copy link

ENV: OSX 10.11.6
WebPack: 4.8.3
Modernizr: 3.6.0
Modernizr-Loader: 1.0.1

.modernizrrc

{
  "minify": true,
  "options": [
    "domPrefixes",
    "hasEvent",
    "testAllProps",
    "testProp",
    "html5shiv",
    "setClasses"
  ],
  "feature-detects": [
    "contenteditable",
    "customelements",
    "customevent",
    "history",
    "indexeddb",
    "indexeddbblob",
    "serviceworker",
    "flexbox",
    "fetch",
    "localstorage",
    "sessionstorage",
    "svgasimg",
    "inlinesvg"
  ]
}

webpack.config.js

resolve: {
    alias: {
      modernizr$: path.resolve(__dirname, "../.modernizrrc")
    },
  }

module: {
    rules: [
      {
        test: /\.modernizrrc$/,
        use: [ 'modernizr-loader', 'json-loader' ]
      },
    ]
}

Webpack appears to be correctly parsing its config and .modernizrrc but throws the following:

screen shot 2018-07-18 at 9 43 18 am

Any ideas what I am doing wrong? Thank you very much in advance!

@rejas
Copy link
Member

rejas commented Jul 19, 2018

Looking at your crosspost there peerigon/modernizr-loader#48 it really seems like an issue for the modernizr-loader guys/girls. Cant help you with webpack stuff, sorry :-(

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

2 participants