[Vuejs]-Vuejs โ€” Browserify โ€” How to use LESS variables "@"

0๐Ÿ‘

You are going to need node-lessify

cd into your project and do:

npm install node-lessify

then find your package.json at the root of your project.

make the following additions:

"scripts": {
    "node-lessify" :"node-lessify src/path-to-your-less-file.less > bundle.js",
    //....leave what is here already alone, don't forget the trailing comma
  },
  "browserify": {
    "transform": [
      "node-lessify",
    //....leave what is here already alone, don't forget the trailing comma
    ]
  },
  "devDependencies": {
    "node-lessify":"0.1.4",
    //....leave what is here already alone, don't forget the trailing comma
๐Ÿ‘คPEWColina

Leave a comment