https://github.com/viewstools/webpack-views-loader
Views (viewsdx.com) language morpher's webpack loader
https://github.com/viewstools/webpack-views-loader
Last synced: about 1 year ago
JSON representation
Views (viewsdx.com) language morpher's webpack loader
- Host: GitHub
- URL: https://github.com/viewstools/webpack-views-loader
- Owner: viewstools
- Created: 2017-04-28T20:01:32.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-04T18:11:09.000Z (about 9 years ago)
- Last Synced: 2025-02-09T19:34:58.443Z (over 1 year ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Views (viewsdx.com) language morpher's webpack loader
Add a rule to your `webpack.config.js`'s `module/rules` list like:
```
module.exports = {
module: {
rules: [
{
test: /\.view$/,
exclude: /(node_modules)/,
loader: 'views-loader',
options: {
map: {
Time: 'react-time',
},
// src: `${__dirname}/src`,
},
}
],
// ...
}
// ...
}
```
See https://github.com/viewsdx/test-webpack for a sample app using this loader.
## Known limitations
If you add a new file, you'll have to modify an existing one for webpack to recognise it.
License BSD-Clause-3
by UXtemple