Forked from dclarke-modus/gist:bded71e5b1d31fa8b483746784462964
Last active
October 27, 2017 15:12
-
-
Save samsch/50249fcf6abf1a8ebe2b1e4e5314dc80 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ExtractTextPlugin = require("extract-text-webpack-plugin"); | |
module.exports = { | |
entry : __dirname + '/app/index.js', | |
module : { | |
rules: [ | |
{ | |
test: /\.js$/, | |
exclude: /node_modules/, | |
loader: 'babel-loader' | |
}, | |
{ | |
test: /\.s?css$/, | |
use: ['style-loader', 'css-loader', 'sass-loader'], | |
} | |
] | |
}, | |
output: { | |
filename : 'bundled.js', | |
path : __dirname + '/build' | |
}, | |
watch: true, | |
watchOptions: { | |
aggregateTimeout: 300, | |
poll: 200 | |
}, | |
plugins: [ | |
new ExtractTextPlugin("styles.css") | |
] | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
//ERROR
ERROR in /home/vagrant/Projects/com_oauth_manager/media/com_oauth_manager/sass/layout/_layout.sass
Module parse failed: /home/vagrant/Projects/com_oauth_manager/media/com_oauth_manager/sass/layout/_layout.sass Unexpected character '@' (1:0)
You may need an appropriate loader to handle this file type.
| @import '../bourbon/bourbon';
| @import '../base/base';
|
@ ./app/component/App.js 5:0-47
@ ./app/index.js