Skip to content

Commit 562d617

Browse files
Sean LarkinSean Larkin
Sean Larkin
authored and
Sean Larkin
committed
Added all the styles to things
1 parent 8ccc7d2 commit 562d617

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

addon/ng2/models/webpack-build-config.ts

+15-2
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export const webpackCommonConfig = {
5959
path: ngAppResolve('./dist'),
6060
filename: '[name].bundle.js'
6161
},
62+
devtool: "sourcemap",
6263
module: {
6364
loaders: [
6465
{
@@ -76,11 +77,11 @@ export const webpackCommonConfig = {
7677
loader: 'awesome-typescript-loader',
7778
query: {
7879
useWebpackText: true,
80+
library: "es6",
7981
tsconfig: ngAppResolve('./src/tsconfig.json'),
8082
resolveGlobs: false,
8183
module: "es2015",
82-
target: "es5",
83-
lib: ["es2015", "dom"]
84+
target: "es5"
8485
}
8586
},
8687
{
@@ -97,6 +98,18 @@ export const webpackCommonConfig = {
9798
test: /\.css$/,
9899
loader: 'raw-loader'
99100
},
101+
{
102+
test:/\.styl$/,
103+
loaders: ['raw-loader', 'stylus-loader']
104+
},
105+
{
106+
test:/\.less$/,
107+
loaders: ['raw-loader', 'less-loader']
108+
},
109+
{
110+
test:/\.scss$/,
111+
loaders: ['raw-loader', 'sass-loader']
112+
},
100113
{
101114
test: /\.html$/,
102115
loader: 'raw-loader'

package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@
6060
"karma-sourcemap-loader": "^0.3.7",
6161
"karma-webpack": "^1.7.0",
6262
"leek": "0.0.21",
63+
"less": "^2.7.1",
64+
"less-loader": "^2.2.3",
6365
"lodash": "^4.11.1",
66+
"node-sass": "^3.7.0",
6467
"opn": "4.0.1",
6568
"parse5": "^2.1.5",
6669
"phantomjs-polyfill": "0.0.2",
@@ -75,6 +78,7 @@
7578
"shelljs": "^0.7.0",
7679
"silent-error": "^1.0.0",
7780
"style-loader": "^0.13.1",
81+
"stylus": "^0.54.5",
7882
"stylus-loader": "^2.1.0",
7983
"symlink-or-copy": "^1.0.3",
8084
"systemjs-builder": "0.15.17",
@@ -83,7 +87,7 @@
8387
"tslint": "^3.11.0",
8488
"tslint-loader": "^2.1.4",
8589
"typedoc": "^0.4.2",
86-
"typescript": "^1.9.0-dev.20160613-1.0",
90+
"typescript": "^1.9.0-dev.20160614-1.0",
8791
"typings": "^0.8.1",
8892
"url-loader": "^0.5.7",
8993
"webpack": "2.1.0-beta.13",

0 commit comments

Comments
 (0)