Sha256: 8865de53ca75ae8b511abe5648a91922c1ae6413fd19ed5e8740536e6d917ae7

Contents?: true

Size: 594 Bytes

Versions: 45

Compression:

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

Version data entries

45 entries across 45 versions & 2 rubygems

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