2.7.0 • Published 3 years ago
ed-lansawebpack-plugin v2.7.0
ed-lansawebpack-plugin
Resolve LANSA repository field, mtxtvars and messages definitions and create a repository object to use in Vue projects.
Installation
- Add ed-lansawebpack-plugin to your project
$ npm install --save-dev ed-lansawebpack-plugin
- Add the plugin in
vue.config.js
const LansaWebPackPlugin = require('ed-lansawebpack-plugin')
module.exports = {
chainWebpack: config => {
config.module
.rule('vue-repo')
.test(/\.vue$/)
.exclude
.add(/node_modules/)
.end()
.use('ed-lansawebpack-plugin')
.loader('ed-lansawebpack-plugin')
.end();
config.module
.rule('js-repo')
.test(/\.js$/)
.exclude
.add(/node_modules/)
.end()
.use('ed-lansawebpack-plugin')
.loader('ed-lansawebpack-plugin')
.end();
config
.plugin('LansaWebPackPlugin.compiler')
.use(LansaWebPackPlugin.compiler, [{
devserver: {
host: 'localhost',
port: '8000',
path: '/lansa/getrepository'
}}])
.end();
}
- Add repository reference in
main.js
import repository from '../lansa/repository';
Warning! the code MUST be inserted immediatly after
import app from './app.vue';
Usage
In .vue
or .js
sources the plugin will search for theese tags references:
v-ed-format
directivep-lansa-field
attribute$lansa.text
function__LANSA__
template function (use when needs to decode LANSA repository objects in other parts of the program)
function __LANSA__(t) {return t;}
License
ed-lansawebpack-plugin
may be redistributed according to the BSD 3-Clause License.
Copyright 2020
2.7.0
3 years ago
2.6.0
3 years ago
2.5.4
4 years ago
2.5.3
4 years ago
2.5.2
4 years ago
2.5.1
4 years ago
2.5.0
4 years ago
2.4.1
4 years ago
2.4.0
4 years ago
2.3.0
4 years ago
2.3.1
4 years ago
2.1.0
4 years ago
2.0.3
4 years ago
2.0.2
4 years ago
1.5.0
4 years ago
1.4.0
4 years ago
1.3.0
4 years ago
1.2.5
4 years ago
1.2.0
4 years ago
1.1.2
4 years ago
1.1.0
4 years ago
1.0.0
4 years ago