How to use @webpack-blocks/assets - 1 common examples

To help you get started, we’ve selected a few @webpack-blocks/assets examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github andywer / webpack-blocks / packages / webpack / __e2e-fixtures__ / sass-css-modules / webpack.config.js View on Github external
const { createConfig, entryPoint, match, setOutput } = require('../../index')
const { css } = require('@webpack-blocks/assets')
const extractText = require('@webpack-blocks/extract-text')
const sass = require('@webpack-blocks/sass')
const path = require('path')

module.exports = createConfig([
  entryPoint(path.join(__dirname, 'src/index.js')),
  setOutput(path.join(__dirname, 'build/bundle.js')),
  match('*.scss', [css.modules(), sass(), extractText('./styles.css')])
])

@webpack-blocks/assets

Webpack block for style loader, file loader, url loader and friends.

MIT
Latest version published 4 years ago

Package Health Score

56 / 100
Full package analysis

Popular @webpack-blocks/assets functions