Add Sass support

This commit is contained in:
Arik Fraimovich 2017-01-24 09:54:28 +02:00
parent 788830ddad
commit 3431f2ebe8
4 changed files with 12 additions and 6 deletions

View File

View File

@ -29,6 +29,7 @@ import './sortable';
import './assets/css/superflat_redash.css';
import './assets/css/redash.css';
import './assets/css/main.scss';
import * as pages from './pages';
import * as components from './components';

View File

@ -57,22 +57,24 @@
"underscore.string": "^3.3.4"
},
"devDependencies": {
"css-loader": "^0.25.0",
"babel-core": "^6.18.0",
"babel-loader": "^6.2.7",
"babel-preset-es2015": "^6.18.0",
"babel-preset-stage-2": "^6.18.0",
"css-loader": "^0.25.0",
"eslint": "^3.9.0",
"eslint-config-airbnb-base": "^9.0.0",
"eslint-loader": "^1.6.0",
"eslint-plugin-import": "^2.0.1",
"raw-loader": "^0.5.1",
"webpack-build-notifier": "^0.1.13",
"extract-text-webpack-plugin": "^1.0.1",
"file-loader": "^0.9.0",
"html-webpack-plugin": "^2.24.0",
"node-sass": "^4.3.0",
"raw-loader": "^0.5.1",
"sass-loader": "^4.1.1",
"url-loader": "^0.5.7",
"webpack": "^1.13.3",
"webpack-build-notifier": "^0.1.13",
"webpack-dev-server": "^1.16.2"
}
}

View File

@ -53,10 +53,13 @@ var config = {
module: {
loaders: [
{test: /\.js$/, loader: 'ng-annotate!babel!eslint', exclude: /node_modules/},
{test: /\.html$/, loader: 'raw', exclude: [/node_modules/,/index\.html/]},
{test: /\.html$/, loader: 'raw', exclude: [/node_modules/, /index\.html/]},
// {test: /\.css$/, loader: 'style!css', exclude: /node_modules/},
{test: /\.css$/, loader: ExtractTextPlugin.extract("css-loader") },
{test: /\.styl$/, loader: 'style!css!stylus', exclude: /node_modules/},
{test: /\.css$/, loader: ExtractTextPlugin.extract("css-loader")},
{
test: /\.scss$/,
loader: ExtractTextPlugin.extract(["css-loader", "sass-loader"])
},
{
test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
loader: 'url',