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 Components
|
||||||
import {rpDirectives as repoPage} from "./directives/components/pages/repo-page/main";
|
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 * as angular from "angular";
|
||||||
|
|
||||||
import repoHeader from "./header";
|
import repoHeader from "./header";
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
|
"baseUrl": ".",
|
||||||
"jsx": "react",
|
"jsx": "react",
|
||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
"outDir": "./build/",
|
"outDir": "./build/",
|
||||||
"target": "es5",
|
"target": "es5",
|
||||||
"sourceMap": true
|
"sourceMap": true,
|
||||||
|
"paths": {
|
||||||
|
"sass/*": ["./static/css/directives/components/pages/*"]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"node_modules"
|
"node_modules"
|
||||||
|
|
|
@ -8,7 +8,10 @@ var config = {
|
||||||
filename: "bundle.js"
|
filename: "bundle.js"
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: ["", ".ts", ".tsx", ".js"]
|
extensions: ["", ".ts", ".tsx", ".js", ".scss"],
|
||||||
|
alias: {
|
||||||
|
"sass": path.resolve('./static/css/directives/components/pages/')
|
||||||
|
}
|
||||||
},
|
},
|
||||||
module: {
|
module: {
|
||||||
loaders: [
|
loaders: [
|
||||||
|
@ -19,7 +22,8 @@ var config = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.scss$/,
|
test: /\.scss$/,
|
||||||
loaders: ['style', 'css', 'sass']
|
loaders: ['style', 'css', 'sass'],
|
||||||
|
exclude: /node_modules/
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue