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

Webpack 2 config documentation #17

Closed
ladas-larry opened this issue Apr 18, 2017 · 7 comments
Closed

Webpack 2 config documentation #17

ladas-larry opened this issue Apr 18, 2017 · 7 comments
Assignees

Comments

@ladas-larry
Copy link

ladas-larry commented Apr 18, 2017

Please add documentation about how to setup this in Webpack 2 config file.

@ladas-larry
Copy link
Author

Is this actually supposed to work with webpack2 already?

@jeerbl
Copy link
Owner

jeerbl commented Apr 28, 2017

Yes I use it with Webpack 2 myself.

@ladas-larry
Copy link
Author

Hehe, then you can just copy paste the config to README.

@jeerbl
Copy link
Owner

jeerbl commented Apr 28, 2017

I'll copy paste here, will do it on README when home:

{
    test: /\.font\.json/,
    use: [
        'style-loader',
        'css-loader',
        'webfonts-loader'
    ]
}

Does that answer your question?

@jeerbl jeerbl closed this as completed Apr 28, 2017
@jeerbl jeerbl reopened this Apr 28, 2017
@ladas-larry
Copy link
Author

It does, indeed working now.

@Finesse
Copy link

Finesse commented May 22, 2017

@jeerbl postcss-loader is not mandatory in your example

@jeerbl
Copy link
Owner

jeerbl commented May 22, 2017

@FinesseRus indeed it is not ;). I use autoprefixer with my config instead of autoprefixer from css-loader, that's why.

I updated the example.

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

No branches or pull requests

3 participants