English | [简体中文](./README.CN.md) # Install > Webpack loader for Omi Single-File Components You can use [npm](https://www.npmjs.com/package/omil) install or [git](https://github.com/Wscats/omil) clone it. ```bash npm install omil --save-dev # or npm install eno-loader --save-dev ``` Configuration webpack file like this: ```js module: { rules: [{ test: /\.omi|eno$/, use: [{ loader: require.resolve('omil'), options: { // Use in development, You should remove in production sourceMaps: 'both', // Config babel plugins for async, await and other many features plugins: [ [ "@babel/plugin-transform-runtime", { "absoluteRuntime": false, "corejs": false, "helpers": true, "regenerator": true, "useESModules": false } ] ] } }], // Or you can use eno-loader or omil directly // use: ['eno-loader'] // use: ['omil'] }] } ``` > [Loader Demo](https://wscats.github.io/omil/dist) ## Why Omil Or Eno Loader? `omil` is a loader for [webpack](https://webpack.js.org/) that allows you to author Omi components in a format called Single-File Components. ## Usage In Omi A `*.omi` file is a custom file format that uses HTML-like syntax to describe a Omi component. Each `*.omi` file consists of three types of top-level language blocks: `