recode-loader
v0.0.106
Published
A recode module loader for webpack
Downloads
2
Readme
recode-loader
A recode module loader for webpack
Install
$ yarn add recode-loader
Usage
webpack.config.js
module.exports = {
module: {
rules: [
{
test: /\.config.js$/i,
use: ['recode-loader'],
},
],
},
};
app.js
import { files } from './files.config.js';
console.log(files);
./files.config.js
import fs from 'fs';
export const files = fs.readdirSync(__dirname);