Sha256: 1123d791d5b2d3f0d94d1ee0ca6a213498ad238db9dd883f19ffd40751cb205b

Contents?: true

Size: 535 Bytes

Versions: 51

Compression:

Stored size: 535 Bytes

Contents

const path = require('path')
const { canProcess } = require('../utils/helpers')
const getStyleRule = require('../utils/get_style_rule')

const {
  additional_paths: paths,
  source_path: sourcePath
} = require('../config')

module.exports = canProcess('less-loader', (resolvedPath) =>
  getStyleRule(/\.(less)(\.erb)?$/i, [
    {
      loader: resolvedPath,
      options: {
        lessOptions: {
          paths: [path.resolve(__dirname, 'node_modules'), sourcePath, ...paths]
        },
        sourceMap: true
      }
    }
  ])
)

Version data entries

51 entries across 51 versions & 2 rubygems

Version Path
shakapacker-7.2.3 package/rules/less.js
shakapacker-7.2.2 package/rules/less.js
shakapacker-7.2.1 package/rules/less.js
shakapacker-7.2.0 package/rules/less.js
shakapacker-7.2.0.rc.0 package/rules/less.js
shakapacker-7.1.0 package/rules/less.js
shakapacker-7.0.3 package/rules/less.js
shakapacker-7.0.2 package/rules/less.js
shakapacker-7.0.1 package/rules/less.js
shakapacker-7.0.0 package/rules/less.js
shakapacker-7.0.0.rc.2 package/rules/less.js
shakapacker-7.0.0.rc.1 package/rules/less.js
shakapacker-7.0.0.rc.0 package/rules/less.js
shakapacker-6.6.0 package/rules/less.js
shakapacker-6.5.6 package/rules/less.js
shakapacker-6.5.5 package/rules/less.js
shakapacker-6.5.4 package/rules/less.js
shakapacker-6.5.3 package/rules/less.js
shakapacker-6.5.2 package/rules/less.js
shakapacker-6.5.1 package/rules/less.js