Sha256: 941c8cc02b3c855c187ffa5a7db5d3d500e4f33426a495352bf8d1b0e063620c

Contents?: true

Size: 589 Bytes

Versions: 4

Compression:

Stored size: 589 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('stylus-loader', (resolvedPath) =>
  getStyleRule(/\.(styl)(\.erb)?$/i, [
    {
      loader: resolvedPath,
      options: {
        stylusOptions: {
          include: [
            path.resolve(__dirname, 'node_modules'),
            sourcePath,
            ...paths
          ]
        },
        sourceMap: true
      }
    }
  ])
)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
webpacker-6.0.0.beta.5 package/rules/stylus.js
webpacker-6.0.0.beta.4 package/rules/stylus.js
webpacker-6.0.0.beta.3 package/rules/stylus.js
webpacker-6.0.0.beta.2 package/rules/stylus.js