disposable-mailbox-2/shared.build.config.js

33 lines
808 B
JavaScript
Raw Normal View History

2016-07-02 21:05:44 +00:00
/*
* @author u215942 (Stefan Zeller)
* @version: 1.0.1
* @since 04.04.2016
*/
exports.webpackLoaders = [
{
test: /\.js$/, exclude: [/node_modules/],
loader: 'babel',
query: {
// https://github.com/babel/babel-loader#options
cacheDirectory: true,
presets: ['es2015']
}
}, {
test: /\.json$/, loader: 'json'
}, {
test: /\.html$/, loader: 'html'
}, {
test: /\.css$/, loader: 'style!css'
2016-07-02 23:31:29 +00:00
}, {
test: /\.scss$/, loader: 'style!css!sass'
2016-07-02 21:05:44 +00:00
}, {
test: /\.(jpe?g|png|gif|svg)$/i, loader: 'url'
}, {
test: /\.(woff|woff2)$/, loader: 'url?mimetype=application/font-woff'
}, {
test: /\.ttf$/, loader: 'url'
}, {
test: /\.eot$/, loader: 'url'
}
];