Webpack配置

Webpack配置

vue-loader

vue-loader是针对Vue中单文件组件(Single-File Component, SFCs)的Webpack Loader

<template>
  <div class="example">{{ msg }}</div>
</template>

<script>
  export default {
    data() {
      return {
        msg: "Hello world!"
      };
    }
  };
</script>

<style>
  .example {
    color: red;
  }
</style>

CSS

上一页