This repository has been archived by the owner on Mar 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: configWebpack 新增 addCSSRule 帮助方法
- Loading branch information
Showing
18 changed files
with
2,271 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
41 changes: 41 additions & 0 deletions
41
packages/remax-cli/src/__tests__/integration/fixtures/config-add-css-rule/expected/app.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
require('./runtime.js'); | ||
(my["webpackJsonp"] = my["webpackJsonp"] || []).push([[1],[ | ||
/* 0 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
|
||
module.exports = __webpack_require__(1); | ||
|
||
|
||
/***/ }), | ||
/* 1 */ | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
|
||
"use strict"; | ||
__webpack_require__.r(__webpack_exports__); | ||
/* harmony import */ var _remax_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2); | ||
/* harmony import */ var _remax_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_remax_runtime__WEBPACK_IMPORTED_MODULE_0__); | ||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3); | ||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__); | ||
|
||
|
||
|
||
var _app = function _app(props) { | ||
return props.children; | ||
}; | ||
|
||
/* harmony default export */ __webpack_exports__["default"] = (App(Object(_remax_runtime__WEBPACK_IMPORTED_MODULE_0__["createAppConfig"])(_app))); | ||
|
||
/***/ }), | ||
/* 2 */ | ||
/***/ (function(module, exports) { | ||
|
||
module.exports = require("@remax/runtime"); | ||
|
||
/***/ }), | ||
/* 3 */ | ||
/***/ (function(module, exports) { | ||
|
||
module.exports = require("react"); | ||
|
||
/***/ }) | ||
],[[0,0]]]); |
38 changes: 38 additions & 0 deletions
38
packages/remax-cli/src/__tests__/integration/fixtures/config-add-css-rule/expected/app.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"pages": [ | ||
"pages/index", | ||
"pages/dont-exist/index", | ||
"pages/classPage" | ||
], | ||
"window": { | ||
"defaultTitle": "Ali App", | ||
"titleBarColor": "#323239" | ||
}, | ||
"subPackages": [ | ||
{ | ||
"root": "packageA", | ||
"pages": [ | ||
"pages/index" | ||
] | ||
} | ||
], | ||
"tabBar": { | ||
"textColor": "#ffffff", | ||
"selectedColor": "#000000", | ||
"backgroundColor": "#212121", | ||
"items": [ | ||
{ | ||
"pagePath": "pages/index/index", | ||
"name": "首页", | ||
"icon": "/assets/images/cat.png", | ||
"activeIcon": "/assets/images/dog.png" | ||
}, | ||
{ | ||
"pagePath": "packageA/pages/index", | ||
"name": "其他", | ||
"icon": "https://img.com/assets/images/cat.png", | ||
"activeIcon": "/assets/images/dog.png" | ||
} | ||
] | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
...emax-cli/src/__tests__/integration/fixtures/config-add-css-rule/expected/pages/index.acss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.b { | ||
background-color: white; | ||
} | ||
|
Oops, something went wrong.