commit | 99e35d01212ef70bc8f8948822b3d76fb87ca6c1 | [log] [tgz] |
---|---|---|
author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | Thu Dec 12 15:21:08 2019 +0000 |
committer | GitHub <noreply@github.com> | Thu Dec 12 15:21:08 2019 +0000 |
tree | 7fbd4f66874e4bcf5673fc1b9c85f7a92411c44d | |
parent | d0634d795a3372ec1d209d9d7fcb4380b18e4732 [diff] |
Bump eslint from 2.13.1 to 4.18.2 Bumps [eslint](https://github.com/eslint/eslint) from 2.13.1 to 4.18.2. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v2.13.1...v4.18.2) Signed-off-by: dependabot[bot] <support@github.com>
A webpack loader for Weex.
npm install weex-loader babel-loader --save
.we
file..js/.css/.html
) via src
attribute..we
file.weex-components
under v0.1, please update it to v0.2.@weex-module/xxxx
in .js
file. see issue.we
file.make a webpack config
module.exports = { entry: './main.we?entry', output: { path: './dist', filename: 'main.js' }, module: { loaders: [ { test: /\.we(\?[^?]+)?$/, loader: 'weex' } ] } };
specify src
attribute
<template src="./main.html"></template> <style src="./main.css"></style> <script src="./main.js"></script>
append a weex config in webpack config
weex: { lang: { jade: ['jade-html'] // a jade langauge will chain "jade-html-loader" } }
main.we
<template lang="jade"> div text Hello Weex </template>
.we
file as component elementpath/to/component.we
in script
like require('./foo.we')
or write inline element like <element name="foo" src="./foo.we"></element>
.template
like <foo></foo>
.<element name="foo" src="./foo.we"></element> <template> <div> <foo></foo> <bar></bar> </div> </template> <script> require('./bar.we') </script>
require('./foo.we?name="fooo"')
. Or specify a name attribute in element, like <element name="fooo" src="./foo.we" ></element>
template
like <fooo></fooo>
.<element name="fooo" src="./foo.we"></element> <template> <div> <fooo></fooo> <baar></baar> </div> </template> <script> require('./bar.we?name=baar') </script>
npm run test
will run mocha testing.
And you can check the specs in test/spec
folder.
src
attrBug
Source Map Offset. Encoding to this problem, please use devtool:"eval-source-map"
instead of devtool:"source-map"
.Bug
Can't set debugger breakpoint. I still don't know the reason, but you can debug with debugger
keyword.