I created a folder named "custom" under app->javascript->packs and place the following external js:
metisMenu.min.jsstartmin.js
Then on under app->javascript->packs->application.js I required the stated js plugin above:
require("@rails/ujs").start()
require("turbolinks").start()
require("@rails/activestorage").start()
require("custom/metisMenu.min").start()
require("custom/startmin").start()
require("channels")
import 'bootstrap'
import './stylesheets/application.scss'
Unfortunately, still this did not work. Any idea what am I doing wrong?
Also is it ok to place all of the custom css under app->javascript->packs->stylesheets (folder) and not on the assets->stylesheets anymore since Rails 6 is using webpacker?
require("custom/startmin")