Add relative path mapping
This commit is contained in:
parent
7a6443d377
commit
d39fc288aa
5 changed files with 12 additions and 7 deletions
|
@ -1 +0,0 @@
|
|||
@import 'pages/repo-page/repo-page';
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import "sass/repo-page/repo-page.scss";
|
||||
import * as angular from "angular";
|
||||
|
||||
import repoHeader from "./header";
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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/
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Reference in a new issue