mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
refactor: return of missing css errors
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">TestApp</string>
|
||||
<string name="title_activity_kimera">TestApp</string>
|
||||
<string name="app_name">FileQualifiers</string>
|
||||
<string name="title_activity_kimera">FileQualifiers</string>
|
||||
</resources>
|
||||
@@ -1,3 +1,5 @@
|
||||
@import '~nativescript-theme-core/css/core.light.css';
|
||||
|
||||
.root-footer {
|
||||
color: black;
|
||||
background-color: lightgreen
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
/* Currently app.land.css is never loaded */
|
||||
@import '~nativescript-theme-core/css/lime.css';
|
||||
|
||||
.root-footer {
|
||||
color: black;
|
||||
background-color: lightpink;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<StackLayout class="page-content">
|
||||
<Label text="This is LANDSACPE page" />
|
||||
|
||||
<Button text="tap" tap="tap" />
|
||||
<Button text="tap" tap="tap" class="btn btn-primary"/>
|
||||
|
||||
<Button text="navigate" tap="navigate" />
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<StackLayout class="page-content">
|
||||
<Label text="This is DEFAULT page" />
|
||||
|
||||
<Button text="tap" tap="tap" />
|
||||
<Button text="tap" tap="tap" class="btn btn-primary" />
|
||||
|
||||
<Button text="navigate" tap="navigate" />
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<StackLayout class="page-content">
|
||||
<Label text="This is LANDSACPE other page" />
|
||||
|
||||
<Button text="tap" tap="tap" />
|
||||
<Button text="tap" tap="tap" class="btn btn-primary"/>
|
||||
|
||||
<Button text="navigate" tap="navigate" />
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<StackLayout class="page-content">
|
||||
<Label text="This is DEFAULT other page" />
|
||||
|
||||
<Button text="tap" tap="tap" />
|
||||
<Button text="tap" tap="tap" class="btn btn-primary"/>
|
||||
|
||||
<Button text="navigate" tap="navigate" />
|
||||
|
||||
|
||||
@@ -1,3 +1 @@
|
||||
{
|
||||
"useLegacyWorkflow": false
|
||||
}
|
||||
{}
|
||||
@@ -6,18 +6,19 @@
|
||||
"nativescript": {
|
||||
"id": "org.nativescript.filequalifiers",
|
||||
"tns-ios": {
|
||||
"version": "6.0.0-2019-06-19-084246-01"
|
||||
"version": "next"
|
||||
},
|
||||
"tns-android": {
|
||||
"version": "6.0.0-2019-06-24-113546-01"
|
||||
"version": "next"
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"nativescript-theme-core": "^1.0.6",
|
||||
"tns-core-modules": "file:../../tns-core-modules"
|
||||
},
|
||||
"devDependencies": {
|
||||
"nativescript-dev-webpack": "next",
|
||||
"tns-platform-declarations": "next",
|
||||
"typescript": "3.4.1"
|
||||
"typescript": "3.4.5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,7 +28,6 @@ module.exports = env => {
|
||||
|
||||
// Default destination inside platforms/<platform>/...
|
||||
const dist = resolve(projectRoot, nsWebpack.getAppPath(platform, projectRoot));
|
||||
const appResourcesPlatformDir = platform === "android" ? "Android" : "iOS";
|
||||
|
||||
const {
|
||||
// The 'appPath' and 'appResourcesPath' values are fetched from
|
||||
@@ -73,6 +72,7 @@ module.exports = env => {
|
||||
itemsToClean.push(`${join(projectRoot, "platforms", "android", "app", "build", "configurations", "nativescript-android-snapshot")}`);
|
||||
}
|
||||
|
||||
nsWebpack.processAppComponents(appComponents, platform);
|
||||
const config = {
|
||||
mode: production ? "production" : "development",
|
||||
context: appFullPath,
|
||||
@@ -133,6 +133,7 @@ module.exports = env => {
|
||||
test: (module, chunks) => {
|
||||
const moduleName = module.nameForCondition ? module.nameForCondition() : '';
|
||||
return /[\\/]node_modules[\\/]/.test(moduleName) ||
|
||||
/[\\/]tns-core-modules[\\/]/.test(moduleName) || // <-- Needed for snapshot builds with linked modules!
|
||||
appComponents.some(comp => comp === moduleName);
|
||||
|
||||
},
|
||||
@@ -179,13 +180,14 @@ module.exports = env => {
|
||||
unitTesting,
|
||||
appFullPath,
|
||||
projectRoot,
|
||||
ignoredFiles: nsWebpack.getUserDefinedEntries(entries, platform)
|
||||
}
|
||||
},
|
||||
].filter(loader => !!loader)
|
||||
},
|
||||
|
||||
|
||||
{
|
||||
test: /\.(ts|css|scss|less|html|xml)$/,
|
||||
test: /\.(ts|css|scss|html|xml)$/,
|
||||
use: "nativescript-dev-webpack/hmr/hot-loader"
|
||||
},
|
||||
|
||||
@@ -227,7 +229,7 @@ module.exports = env => {
|
||||
// Define useful constants like TNS_WEBPACK
|
||||
new webpack.DefinePlugin({
|
||||
"global.TNS_WEBPACK": "true",
|
||||
"process": undefined,
|
||||
"process": "global.process",
|
||||
}),
|
||||
// Remove all files from the out dir.
|
||||
new CleanWebpackPlugin(itemsToClean, { verbose: !!verbose }),
|
||||
|
||||
Reference in New Issue
Block a user