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

No Such File or Directory #48

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

No Such File or Directory #48

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!

@arusak
Copy link

arusak commented Sep 4, 2018

@chrisalexander55, please use https://modernizr.com/download to make a proper config file. Mind feature-detects section here:

{
  "minify": false,
  "options": [],
  "feature-detects": [
    "test/custom-elements",
    "test/websockets",
    "test/css/flexbox",
    "test/es6/promises",
    "test/network/beacon",
    "test/webrtc/getusermedia",
    "test/webrtc/peerconnection"
  ]
}

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