Skip to content

Instantly share code, notes, and snippets.

@samsch
Forked from dclarke-modus/gist:bded71e5b1d31fa8b483746784462964
Last active October 27, 2017 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samsch/50249fcf6abf1a8ebe2b1e4e5314dc80 to your computer and use it in GitHub Desktop.
Save samsch/50249fcf6abf1a8ebe2b1e4e5314dc80 to your computer and use it in GitHub Desktop.
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")
]
};
@dclarke-modus
Copy link

//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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment