Answer the question
In order to leave comments, you need to log in
Rails 6 how to properly install Gentella theme via webpacker?
Hello
I decided to take a closer look at the latest version of 6 rails, in which webpack is already installed as a js collector by default. How to install boostrap or jquery is clear. But I found a simple and free gentelella admin template on the net , and here questions arose. I installed it through yarn, and the dependency was added to package.json
{
"name": "test-project",
"private": true,
"dependencies": {
"@rails/actioncable": "^6.0.0-alpha",
"@rails/activestorage": "^6.0.0-alpha",
"@rails/ujs": "^6.0.0-alpha",
"@rails/webpacker": "4.2.2",
"gentelella": "^1.4.0"
},
"version": "0.1.0",
"devDependencies": {
"webpack-dev-server": "^3.9.0"
}
}
require("@rails/ujs").start()
require("@rails/activestorage").start()
require("channels")
require("gentelella")
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question