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

autoprefixer + harp #334

Closed
electerious opened this issue Sep 3, 2014 · 3 comments
Closed

autoprefixer + harp #334

electerious opened this issue Sep 3, 2014 · 3 comments

Comments

@electerious
Copy link

Is it possible to combine autoprefixer and harp, so that the served css files are already auto-prefixed?

My gulp files looks like the following:

/*
 * Serve the Harp Site from the src directory
 */
gulp.task('serve', function() {

    harp.server(__dirname, { port: 9000 }, function(err) {

        if (err!==null&&err!==undefined) console.error(err);

        browserSync({
            proxy: 'localhost:9000',
            open: true,
            /* Hide the notification. It gets annoying */
            notify: {
                styles: ['opacity: 0', 'position: absolute']
            }
        });

        /* Watch for scss changes, tell BrowserSync to refresh main.css */
        gulp.watch([files.styles.css, files.styles.scss], function() {
            reload(files.styles.main, { stream: true });
        });

        /* Watch for all other changes, reload the whole page */
        gulp.watch([files.harp, files.data, files.sites, files.images, files.scripts.js, files.scripts.coffee, files.partials], reload);

    })

});

Notice: Autoprefixing the files after compiling with harp in gulp isn't a problem. This question is about how to serve autoprefixed files with harp.server.

Thanks!

@electerious
Copy link
Author

Found a merged PR: sintaxi/terraform#57. Is autoprefixer already implemented?

Edit: The terraform dependency of harp is outdated. Version 0.9.0 of terraform comes with autoprefixer build in.

@kennethormandy
Copy link
Collaborator

Autoprefixing will be in the next release of Harp, we’re just seeing if we can slip in consistent minification into the same one. sintaxi/terraform#59

@sintaxi
Copy link
Owner

sintaxi commented Sep 4, 2014

@electerious terraform tends to be a step ahead of harp. harp v0.14.0 is right around the corner.

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

3 participants