2017-11-23 4 views
0

Ich bin neu im Brunch und möchte einfach animate.css zu einer Seite hinzufügen. Ich habe animate.css bereits über npm installiert und zu package.json hinzugefügt. Mein Brunch-config sieht wie folgt aus:Brunch füge animate.css hinzu

module.exports = { 
    npm: { 
    globals: { 
    $: 'jquery' 
    }, 
    styles: { 
    animate: ['css/animate.css'] 
    } 
}, 

    files: { 
    javascripts: { 
    joinTo: { 
     'libraries.js': /^(?!app\/)/, 
     'app.js': /^app\// 
    } 
    }, 
    stylesheets: {joinTo: 'app.css'} 
    } 
} 

Keine Ahnung, wie animate.css meiner Seite aufzunehmen. Irgendwelche Vorschläge?

THX

Antwort

0

Die CSS-Datei ist nicht Brunch beobachtet. Für eine einfache Lösung, fügen Sie einfach den Pfad manuell Sie Sheets wie folgt aus:

stylesheets: { 
    joinTo: { 'app.css': [ 
     'path/to/animatie.css', // include specific file 
     /\.css$/     // all files with .css extension 
    ] } 
} 

Mehr Informationen über die Musterabgleich in der Dokumentation: http://brunch.io/docs/config.html#pattern-matching

Verwandte Themen