How to add Semantic-ui to Webpack with vue-cli
See original GitHub issueyesterday, im have a problem with semantic ui js to import in webpack with vue-cli.
but now that problem is resolved. im just share how do im solve this problem.
import semantic from 'semantic'
// error
i try again.
import semantic from 'semantic-ui'
// error again
hmm, webpack does not recognize semantic.
but im try this
import semantic from 'semantic-ui/dist/semantic.js'
// yes, it works!
if i’m wrong, please comment. thanks!
Issue Analytics
- State:
- Created 7 years ago
- Reactions:8
- Comments:13
Top Results From Across the Web
Semantic UI Vue
Semantic UI Vue is the Vue integration for Semantic UI. ... Vue.use(SuiVue);. If you are not using Webpack, you can add the script...
Read more >Using vue.js with semantic UI - Stack Overflow
1) Install jQuery if it's not installed (properly!): npm install --save jquery. then in your webpack.config file (I just added it in ...
Read more >Working with Webpack | Vue CLI
Vue CLI is in Maintenance Mode! For new projects, it is now recommended to use create-vue to scaffold Vite-based projects.
Read more >vue-cli with Semantic UI on webpack - Qiita
Copied! $ vue init webpack-simple my-project This will install Vue 2.x version of the template. For Vue 1.
Read more >Getting Started | Semantic UI
Semantic UI packaged Gulp build tools so your project can preserve its own theme changes. The easiest way to install Semantic UI is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For me, I use
semantic-ui-css
package and add:In my
main.js
file.Of course before you requiring ui-css, you can: