0.0.1 • Published 7 years ago
rc-exports-loader v0.0.1
rc-exports-loader
A webpack loader for babel-style rc files
Usage
Given a file such as:
#.testrc
{
plugins: [
'foo'
]
}
This will transform the file to export the object for usage in import
statements
import test from './testrc';
test.plugins; // [ 'foo' ]
Config
Basic webpack.config.js
syntax applies:
module: {
rules: [
{
test: /\.testrc$/,
use: 'rc-exports-loader'
}
]
}
0.0.1
7 years ago