Rename browser.js to bundle.js
so the purpose is clearer
This commit is contained in:
Родитель
c1ca987133
Коммит
21348b469c
|
@ -21,7 +21,7 @@ import '@github/auto-complete-element'
|
|||
With a script tag:
|
||||
|
||||
```html
|
||||
<script type="module" src="./node_modules/@github/auto-complete-element/dist/browser.js">
|
||||
<script type="module" src="./node_modules/@github/auto-complete-element/dist/bundle.js">
|
||||
```
|
||||
|
||||
### Markup
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
</auto-complete>
|
||||
<button type="submit">Save</button>
|
||||
</form>
|
||||
<!-- <script type="module" src="../dist/browser.js"></script> -->
|
||||
<script type="module" src="https://unpkg.com/@github/auto-complete-element@latest/dist/browser.js"></script>
|
||||
<!-- <script type="module" src="../dist/bundle.js"></script> -->
|
||||
<script type="module" src="https://unpkg.com/@github/auto-complete-element@latest/dist/bundle.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -23,7 +23,7 @@ export default [
|
|||
{
|
||||
input: 'src/index.js',
|
||||
output: {
|
||||
file: 'dist/browser.js',
|
||||
file: 'dist/bundle.js',
|
||||
format: 'es'
|
||||
},
|
||||
plugins: [
|
||||
|
|
|
@ -16,7 +16,7 @@ function completer(request, response, next) {
|
|||
module.exports = function(config) {
|
||||
config.set({
|
||||
frameworks: ['mocha', 'chai'],
|
||||
files: [{pattern: '../dist/browser.js', type: 'module'}, {pattern: 'test.js', type: 'module'}],
|
||||
files: [{pattern: '../dist/bundle.js', type: 'module'}, {pattern: 'test.js', type: 'module'}],
|
||||
reporters: ['mocha'],
|
||||
port: 9876,
|
||||
colors: true,
|
||||
|
|
Загрузка…
Ссылка в новой задаче