hatena / hatena-blog-theme-boilerplate Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://help.hatenablog.com/entry/theme/custom-theme
License: Other
Home Page: https://help.hatenablog.com/entry/theme/custom-theme
License: Other
Access-Control-Request-Private-Network: true
とAccess-Control-Allow-Private-Network: true
を含む必用があるようです1。incluede
になっているようでアクセスできないようです2。Access-Control-Request-Private-Network: true
とAccess-Control-Allow-Private-Network: true
は vitejs/vite#7134 (comment) で会話されている設定をすることで反映することができそうです。 ...
css: {
devSourcemap: true,
postcss: {
plugins: [autoprefixer()],
},
},
+ plugins: [
+ {
+ name: "configure-response-headers",
+ configureServer: (server) => {
+ server.middlewares.use((_req, res, next) => {
+ res.setHeader("Access-Control-Request-Private-Network", "true");
+ res.setHeader("Access-Control-Allow-Private-Network", "true");
+ next();
+ });
+ },
+ },
+ ],
};
credential modeについてはcrossorigin="anonymous"
とするとアクセスできるかと思います。
<script type="module" src="http://localhost:5173/@vite/client"></script>
<link rel="stylesheet" crossorigin="anonymous" type="text/css" href="http://localhost:5173/scss/boilerplate.scss" />
はてな担当様
新規にサブサイトを作成したらアドレスはhttpsでした。
npm start を実行してもbrowser-syncはhttpのアドレスしか認識してなく自動更新されません。
ローカル環境のアクセス先:
Local: http://localhost:3000
External: http://192.168.3.8:3000
管理画面のアクセス先:
UI: http://localhost:3001
UI External: http://192.168.3.8:3001
質問:
pacage.jnsnのbrowser-syncにどのようなオプションを追加すれば
httpsのサイトと同期できるか教えて頂けないでしょうか。
宜しくお願いいたします。
こちらのデザインテーマを動かした際の発見を報告させてもらいます。
node-sass が動作するNodeのバージョンは指定があります。
https://github.com/sass/node-sass#node-version-support-policy
現状のnode-sassのバージョンだと、対応するNodeのバージョンはNode 8です。
私の環境(Node 16がインストールされている)だと、npm install
で詰まりました。
対応するNode 16に対応するnode-sass 7.0.1
にバージョンアップすると npm install
および npm run scss
が実行可能になったことを共有しておきます。
お世話になっております。
従来のヘッダーですと #globalheader-container
にて設定が出来ましたが、
新デザインのヘッダーではこのIDでの設定が利かないようです。
_core.scss
ファイルにおいて、.entry-content pre
内にfont-size
プロパティが2回登場し、重複しています。
pre {
background: $bg-light;
border: none;
white-space: pre-wrap;
text-overflow: ellipsis;
font-size: 100%;
line-height: 1.3;
font-size: .8rem;
padding: 10px;
& > code {
margin: 0;
padding: 0;
white-space: pre;
border: none;
background-color: transparent;
font-family: 'Monaco', 'Consolas', 'Courier New', Courier, monospace, sans-serif;
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.