@moped/rule-file

This module provides a sensible rule for handling arbitrary files in webpack apps. It is part of the moped suite of utilities for creating composable configs for building node.js and react apps.

Stats

StarsIssuesVersionUpdatedCreatedSize
@moped/rule-file
13320.0.93 years ago4 years agoMinified + gzip package size for @moped/rule-file in KB

Readme

rule-css

This module provides a sensible rule for handling arbitrary files in webpack apps. It is part of the moped suite of utilities for creating composable configs for building node.js and react apps.

When you import a file using this package, you get the url of that file.

Installation

yarn add --dev @moped/rule-file

Usage

const createFileRule = require('@moped/rule-file');

module.exports = {
  entry: __dirname + '/src/index.js',
  output: {
    path: __dirname + '/build',
    filename: 'index.js',
    publicPath: '/',
  },
  module: {
    rules: [createFileRule()],
  },
};

Licence

MIT

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.