Enable inline javascript in LESS

I had same problem, I use webpack with less loader, I needed to add javascript option in less loader config: { test: /\.less$/, use: [{ loader: “style-loader” }, { loader: “css-loader” }, { loader: “less-loader”, options: { javascriptEnabled: true } }] } I found in the sourcecode of less compiler: https://github.com/less/less.js/blob/3.x/bin/lessc that they parse js … Read more

How to Install Font Awesome in Laravel Mix

To install font-awesome you first should install it with npm. So in your project root directory type: npm install font-awesome –save (Of course I assume you have node.js and npm already installed. And you’ve done npm install in your projects root directory) Then edit the resources/assets/sass/app.scss file and add at the top this line: @import … Read more

Laravel 5.4 ‘cross-env’ Is Not Recognized as an Internal or External Command

You need to make cross-env working globally instead of having it in the project. 1) remove node_modules folder 2) run npm install –global cross-env 3) remove “cross-env”: “^5.0.1”, from package.json file devDependencies section. Actually, you can skip this step and keep package.json intact. If you prefer. 4) run npm install –no-bin-links 5) run npm run … Read more