bundler-plate
Version:
A CLI generates a boilerplate and config file for webpack/gulp with the most recommended and commonly used configurations.
18 lines (17 loc) • 367 B
JavaScript
module.exports = `
{
test: /\\.(woff(2)?|ttf|eot|svg)(\\?v=\\d+\\.\\d+\\.\\d+)?$/,
loader: "file-loader",
options: {
name: "[name].[ext]",
outputPath: "assets/fonts/"
}
},
{
test: /\\.(png|jpe?g|gif)$/,
use : {
loader: "file-loader",
options : { name: "[name].[ext]", outputPath: "assets/images/" }
}
}
`;