6.3.6 • Published 5 months ago
@studiometa/webpack-config-preset-prototyping v6.3.6
@studiometa/webpack-config-preset-prototyping
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-prototypingAnd 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
ts(boolean): useapp.tsas entry point instead ofapp.jstwig(Object): options for thetwigpresettailwindcss(Object): options for thetailwindcsspresethtml(Object): options for thehtml-webpack-pluginpluginmarkdown(Object): options for themarkdownpreset
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.twig6.3.4
6 months ago
6.3.3
9 months ago
6.3.6
5 months ago
6.3.5
5 months ago
6.3.0
11 months ago
6.2.1
12 months ago
6.3.2
11 months ago
6.3.1
11 months ago
6.2.2
12 months ago
6.2.0
1 year ago
5.3.2
1 year ago
6.1.0
1 year ago
6.0.3
1 year ago
5.3.1
2 years ago
6.0.2
2 years ago
6.0.1
2 years ago
6.0.0
2 years 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