Add relative path mapping

This commit is contained in:
Ian Minoso 2016-11-07 17:27:50 -05:00
parent 7a6443d377
commit d39fc288aa
5 changed files with 12 additions and 7 deletions

View file

@ -1 +0,0 @@
@import 'pages/repo-page/repo-page';

View file

@ -1,6 +1,3 @@
// Import Styles
import '../css/directives/components/main.scss';
// Import Components
import {rpDirectives as repoPage} from "./directives/components/pages/repo-page/main";

View file

@ -1,3 +1,4 @@
import "sass/repo-page/repo-page.scss";
import * as angular from "angular";
import repoHeader from "./header";

View file

@ -1,10 +1,14 @@
{
"compilerOptions": {
"baseUrl": ".",
"jsx": "react",
"module": "commonjs",
"outDir": "./build/",
"target": "es5",
"sourceMap": true
"sourceMap": true,
"paths": {
"sass/*": ["./static/css/directives/components/pages/*"]
}
},
"exclude": [
"node_modules"

View file

@ -8,7 +8,10 @@ var config = {
filename: "bundle.js"
},
resolve: {
extensions: ["", ".ts", ".tsx", ".js"]
extensions: ["", ".ts", ".tsx", ".js", ".scss"],
alias: {
"sass": path.resolve('./static/css/directives/components/pages/')
}
},
module: {
loaders: [
@ -19,7 +22,8 @@ var config = {
},
{
test: /\.scss$/,
loaders: ['style', 'css', 'sass']
loaders: ['style', 'css', 'sass'],
exclude: /node_modules/
}
]
}