You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

44 lines
1.1 KiB

var ExtractTextPlugin = require('extract-text-webpack-plugin');
var WebpackNotifierPlugin = require('webpack-notifier');
module.exports = {
entry: './js/index.js',
module: {
loaders: [
{
test: /\.js$/,
exclude: __dirname + '/node_modules',
loader: 'babel-loader',
query: {
presets: ['es2015']
}
},
{
test: /\.(scss|css)$/,
include: __dirname + '/css',
loader: ExtractTextPlugin.extract({
fallback: "style-loader",
use: "css-loader!sass-loader",
})
},
{
test : /\.svg$/,
loader : 'file-loader?name=../[path][name].[ext]'
}
]
},
output: {
path: __dirname,
filename: './js/bundle.js'
},
plugins: [
new ExtractTextPlugin({
filename: './css/style.css',
allChunks: true
}),
new WebpackNotifierPlugin({contentImage: '../core/img/favicon.png'})
]
};