6.3.6 • Published 1 month ago

@studiometa/webpack-config-preset-prototyping v6.3.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

@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
6.3.4

2 months ago

6.3.3

6 months ago

6.3.6

1 month ago

6.3.5

1 month ago

6.3.0

8 months ago

6.2.1

8 months ago

6.3.2

7 months ago

6.3.1

8 months ago

6.2.2

8 months ago

6.2.0

9 months ago

5.3.2

1 year ago

6.1.0

12 months ago

6.0.3

1 year ago

5.3.1

1 year ago

6.0.2

1 year ago

6.0.1

1 year ago

6.0.0

1 year ago

5.3.0

2 years ago

5.2.3

2 years ago

5.2.2

2 years ago

5.2.1

2 years ago

5.2.0

2 years ago

5.1.1

2 years ago

5.0.1

2 years ago

5.0.0

2 years ago

5.0.0-alpha.2

2 years ago

5.0.0-alpha.1

2 years ago