Created
June 7, 2016 16:19
-
-
Save gCardinal/ddec094dd82468ec6a0bec3c570f2710 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
var path = require('path'); | |
var webpack = require('webpack'); | |
var path = require('path'); | |
var ExtractTextPlugin = require("extract-text-webpack-plugin"); | |
var root = __dirname + '/../../'; | |
module.exports = { | |
module: { | |
loaders: [{ | |
test: /\.scss|\.sass|\.css$/, | |
loaders: [ | |
'style', | |
'css?-url&modules&importLoaders=1&localIdentName=[name].[local].[hash:base64:5]', | |
'resolve-url', | |
'sass' | |
], | |
include: path.join(root, 'src/ts'), | |
}, { | |
test: path.resolve(root, "src/sass/screen.scss"), | |
loader: ExtractTextPlugin.extract( | |
"style", | |
"css?-url!resolve-url!sass" | |
), | |
include: path.join(root, 'src/sass'), | |
}, | |
}, | |
plugins: [ | |
new ExtractTextPlugin('[name].css', { | |
allChunks: true | |
}), | |
], | |
sassLoader: { | |
includePaths: [ | |
path.resolve(root, "src/sass"), | |
path.resolve(root, "src/js/components"), | |
] | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment