![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
inline-jscss-webpack-plugin
Advanced tools
基于 webpack
和 html-webpack-plugin
的插件,将 js
|css
链接对应内容打入 html
npm install --save-dev inline-jscss-webpack-plugin
// webpack.conf.js
const HtmlWebpackPlugin = require('html-webpack-plugin')
const InlineJscssWebpackPlugin = require('inline-jscss-webpack-plugin')
const webpackConfig = {
entry: {
example: './example.js'
},
plugins: [
new HtmlWebpackPlugin(),
new InlineJscssWebpackPlugin({
assets: [
'manifest.js', // 会打入 manifest.[hash.]js
'example' // 会打入 example.[hash.]js 和 example.[hash.]css
]
})
]
}
module.exports = webpackConfig
参数名称 | 类型 | 含义 | 是否必填 | 默认值 |
---|---|---|---|---|
assets | Array[string] | 要打入 html 中的所有 js&css 文件 | 否 | [] |
delete | Boolean | 是否删除已经打入的文件 | 否 | false |
FAQs
将 webpack 打包之后的静态文件内联到 html 中
We found that inline-jscss-webpack-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.