@studiometa/webpack-config-preset-prototyping
TypeScript icon, indicating that this package has built-in type declarations

6.0.1 • Public • Published

@studiometa/webpack-config-preset-prototyping

NPM Version

A preset for @studiometa/webpack-config to add prototyping support to your project. It includes:

  • JS or TS
  • SCSS and Tailwind CSS
  • Twig for templating with file based routing and dynamic data loading

Usage

Install the package:

npm install --save-dev @studiometa/webpack-config-preset-prototyping

And load the preset in the meta.config.js file:

import { defineConfig } from '@studiometa/webpack-config';
import { prototyping } from '@studiometa/webpack-config-preset-prototyping';

export default defineConfig({
  presets: [prototyping()],
  // ...
});

Documentation

Options

Examples

Use it in your meta.config.js file:

import { defineConfig } from '@studiometa/webpack-config';
import { prototyping } from '@studiometa/webpack-config/presets';

export default defineConfig({
  presets: [prototyping()],
});

And set up your project with the following folder structure:

meta.config.js
package.json
public/ --> public assets, served from `/`
...
src/
  css/ --> css files
    app.scss
  js/ --> js files
    app.js
  templates/
    components/ --> component files, aliased to `@components`
    layouts/ --> layout files, aliased to `@layout`
    foo/ --> random files, aliased to `@foo`
    pages/
      index.twig

Package Sidebar

Install

npm i @studiometa/webpack-config-preset-prototyping

Weekly Downloads

42

Version

6.0.1

License

MIT

Unpacked Size

31.1 kB

Total Files

9

Last publish

Collaborators

  • jeremiewerner