UNPKG

@felipecastillo/create-template

Version:

A CLI to bootstrap new projects

46 lines (43 loc) 820 B
// webpack.settings.js - webpack settings config const srcRoot = "src"; // Webpack settings exports module.exports = { paths: { src: { js: "./" + srcRoot + "/js/", }, dist: { base: "./dist/", }, templates: "./templates/", }, urls: { publicPath: () => "../", }, entries: { main: ["index.js"], }, copyWebpackConfig: [ { context: "./" + srcRoot + "/assets/", from: "**/*", to: "./assets/[folder]/[name].[ext]?[contenthash]", flatten: true, }, ], devServerConfig: { proxy: () => "", public: () => "/dist/", port: () => 8181, https: () => true, }, manifestConfig: { basePath: "", }, purgeCssConfig: { paths: [ "./templates/**/*.{twig,html}", "./" + srcRoot + "/js/**/*.js", ], }, };