Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zswang/fis3-parser-webpack
A parser plugin for fis3 to compile webpack file.
https://github.com/zswang/fis3-parser-webpack
fis3 webpack
Last synced: about 1 month ago
JSON representation
A parser plugin for fis3 to compile webpack file.
- Host: GitHub
- URL: https://github.com/zswang/fis3-parser-webpack
- Owner: zswang
- License: mit
- Created: 2016-06-23T10:20:03.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-15T08:10:37.000Z (over 6 years ago)
- Last Synced: 2024-09-27T22:46:14.223Z (about 2 months ago)
- Topics: fis3, webpack
- Language: JavaScript
- Size: 10.7 KB
- Stars: 4
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
fis3-parser-webpack
-----A parser for fis to compile webpack module.
# [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coverage Status][coverage-image]][coverage-url]
## 使用示例
```js
fis.match('xx.js', {
parser: fis.plugin('webpack', {
module: {
rules: [{
test: /\.css$/,
use: [ 'style-loader', 'css-loader' ]
}]
},
// ...options
// 请参考 https://webpack.js.org/configuration/#options
})
})
```或者
```js
fis.match('xx.js', {
parser: fis.plugin('webpack', {
getOptions: function(webpack) {
return {
module: {
rules: [{
test: /\.css$/,
use: [ 'style-loader', 'css-loader' ]
}]
},
plugins: [
// Ignore require() calls in vs/language/typescript/lib/typescriptServices.js
new webpack.IgnorePlugin(
/^((fs)|(path)|(os)|(crypto)|(source-map-support))$/,
/vs\/language\/typescript\/lib/
)
]
}
}
})
})
```## License
MIT © [zswang](http://weibo.com/zswang)
[npm-url]: https://npmjs.org/package/fis3-parser-webpack
[npm-image]: https://badge.fury.io/js/fis3-parser-webpack.svg
[travis-url]: https://travis-ci.org/zswang/fis3-parser-webpack
[travis-image]: https://travis-ci.org/zswang/fis3-parser-webpack.svg?branch=master
[coverage-url]: https://coveralls.io/github/zswang/fis3-parser-webpack?branch=master
[coverage-image]: https://coveralls.io/repos/zswang/fis3-parser-webpack/badge.svg?branch=master&service=github