-
-
Notifications
You must be signed in to change notification settings - Fork 255
How to integrate external css frameworks? #47
Comments
Simply add it in <style src="bulma/css/bulma.css"></style> |
ohh works like a charm. Thank you! |
I'm sorry I have a follow-up question regarding sass. It seems like, contrary to my opening comment, sass-files only get loaded as standard css, without being compiled. |
yeah, vbuild does not have built-in sass support, but you can custom this by: // vue.config.js
module.exports = {
mergeConfig: {},
// or
production: {
mergeConfig: {
// webpack config
}
},
development: {
mergeConfig: {
// webpack config
}
}
} |
I'm still struggling to make this work. This is my vue.config.js:
installed the loader via:
my package.json (I had to put in webpack due to peerDependency of sass-loader on npm3
and a simple test
loaded into the default App.vue
And the variable is not resolved. |
eh, if you use sass directly in <style lang="sass" src="./path/to/xxx.scss"></style> |
I would, but then I get trouble with external scss/sass resourced e.g. bulma: neither this
nor this
works (Build fails). |
Something like this seems to work: <style lang="sass">
$blue: #72d0eb;
@import "~bulma";
</style> |
ok that does work 🙌. Now everything seems to be working beautifully. I now do this:
and inside app.scss:
Thanks for the quick support! |
Hello I am very new to framework+vue i am trying to embed external css i am adding <style lang="css" src="../static/Democss.scss"></style> in main.vue but there is compilation errorError: Error happened when webpack build: Error: Command failed: "/home/sheetal/DemoApp/node_modules/.bin/webpack" |
@Sheetaldx hmm you should set it to |
I am importing css file not .scss i mention wrong extension in above comment |
@Sheetaldx mind providing a repo or more details about the error? |
the error is Webpack build completed to www folder successfully!
Error: Error happened when webpack build: Error: Command failed: "/home/sheetal/DemoApp/node_modules/.bin/webpack" |
@Sheetaldx hmm what is this? is it even a Poi thing? |
no its not Poi..., i am using framework7+vue |
i am just trying to import a external css file |
@Sheetaldx the issue tracker is actually for Poi only, you may ask that on StackOverflow instead. |
ok thank u :) |
Hi there,
thanks for this awesome starting point to create vue apps. I'm trying it out right now and so far I love it.
I was just trying to use bulma. Although I can include scss files,
@import
ing the framework drops this errorI couldn't find a clear documentation of how to properly include css/scss frameworks or even my own files as there are no example files included (just the CSS in the vue component).
Any help on how you intended to do this is much appreciated.
The text was updated successfully, but these errors were encountered: