Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

feat: alias tilde to point to the app root #201

Merged
merged 2 commits into from
Jun 29, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion prepublish/common/exports.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ module.exports = env => {
modules: [
"node_modules/tns-core-modules",
"node_modules",
]
],

alias: {
'~': resolve("./app")
},
},
node: {
// Disable node shims that conflict with NativeScript
Expand Down
6 changes: 5 additions & 1 deletion templates/webpack.angular.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ module.exports = env => {
modules: [
"node_modules/tns-core-modules",
"node_modules",
]
],

alias: {
'~': resolve("./app")
},
},
node: {
// Disable node shims that conflict with NativeScript
Expand Down
6 changes: 5 additions & 1 deletion templates/webpack.javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ module.exports = env => {
modules: [
"node_modules/tns-core-modules",
"node_modules",
]
],

alias: {
'~': resolve("./app")
},
},
node: {
// Disable node shims that conflict with NativeScript
Expand Down
6 changes: 5 additions & 1 deletion templates/webpack.typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ module.exports = env => {
modules: [
"node_modules/tns-core-modules",
"node_modules",
]
],

alias: {
'~': resolve("./app")
},
},
node: {
// Disable node shims that conflict with NativeScript
Expand Down