-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack.config.js
More file actions
60 lines (53 loc) · 1.11 KB
/
webpack.config.js
File metadata and controls
60 lines (53 loc) · 1.11 KB
1
'use strict';var path = require('path');var webpack = require('webpack');var ExtractTextPlugin = require("extract-text-webpack-plugin");module.exports = { entry: ['./src/app.js', './style/css/style.css', './style/scss/style.scss'], output: { path: __dirname, filename: 'bundle/js/app.js' }, plugins: [ // Specify the resulting CSS filename new ExtractTextPlugin('bundle/css/style.css') ], module: { rules: [ { test: /\.js$/, exclude: /node_modules/, use: [ 'babel-loader' ] }, { test: /\.(css|scss)/, use: ExtractTextPlugin.extract({ fallback: 'style-loader', use: [ 'css-loader', 'sass-loader' ] }) }, { test : /\.(png|jpg|gif)$/, use : [ { loader: 'url-loader', options: { limit : 8192 } } ] } ] }, stats: { // Colored output colors: true }, // Create Sourcemaps for the bundle devtool: 'source-map'};