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
webpacker-6.0.0.rc.3 package/rules/less.js
webpacker-6.0.0.rc.2 package/rules/less.js
webpacker-6.0.0.rc.1 package/rules/less.js
webpacker-6.0.0.beta.7 package/rules/less.js
webpacker-6.0.0.beta.6 package/rules/less.js
webpacker-6.0.0.beta.5 package/rules/less.js
webpacker-6.0.0.beta.4 package/rules/less.js
webpacker-6.0.0.beta.3 package/rules/less.js
webpacker-6.0.0.beta.2 package/rules/less.js
webpacker-6.0.0.beta.1 package/rules/less.js
webpacker-6.0.0.beta package/rules/less.js