Giter Site home page Giter Site logo

hussainweb / drupal-bootstrap-webpack Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 5.0 99 KB

A webpack based setup for Drupal Bootstrap theme's sass starterkit

License: GNU General Public License v2.0

JavaScript 17.03% Shell 2.19% SCSS 80.78%
drupal drupal-theme sass-starterkit webpack

drupal-bootstrap-webpack's Introduction

hussainweb

I'm Hussain Abbas and I go by hussainweb online in most places. I have built, and more importantly, helped others build computer programs over the past two decades.

I work at Axelerant and contribute to open source software (mostly Drupal) as part of my work and out of my own interest. I have a longer README if you are interested in more about me.


Social Media:

Drupal GitHub GitLab YouTube Twitter LinkedIn Instagram

Currently working with:

Learning:

Previously worked with:

Currently focused on building:

How did I build this?

drupal-bootstrap-webpack's People

Contributors

hussainweb avatar laughnan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

drupal-bootstrap-webpack's Issues

Missing required uglifyjs-webpack-plugin for development mode

After running yarn install:

yarn install v1.13.0
info No lockfile found.
[1/4] πŸ”  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] πŸ”—  Linking dependencies...
[4/4] πŸ”¨  Building fresh packages...
success Saved lockfile.
✨  Done in 32.45s.

Then running yarn run dev:

yarn run v1.13.0
$ NODE_ENV=dev webpack
βœ– ο½’configο½£: An error occurred while trying to find a config file
              Did you forget to specify a --require?
/drupal/themes/custom/my_custom_theme/node_modules/@webpack-contrib/config-loader/lib/load.js:85
    throw new LoadConfigError(e, configPath);
    ^

LoadConfigError: Cannot find module 'uglifyjs-webpack-plugin'
    at Function.Module._resolveFilename (module.js:548:15)
    at Function.Module._load (module.js:475:25)
    at Module.require (module.js:597:17)
    at require (/drupal/themes/custom/my_custom_theme/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
    at Object.<anonymous> (/drupal/themes/custom/my_custom_theme/webpack.config.js:9:24)
    at Module._compile (/drupal/themes/custom/my_custom_theme/node_modules/v8-compile-cache/v8-compile-cache.js:178:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Module.require (module.js:597:17)
    at require (/drupal/themes/custom/my_custom_theme/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
    at module.exports.moduleId (/drupal/themes/custom/my_custom_theme/node_modules/import-fresh/index.js:28:9)
    at loadJs (/drupal/themes/custom/my_custom_theme/node_modules/cosmiconfig/dist/loaders.js:9:18)
    at Explorer.loadFileContent (/drupal/themes/custom/my_custom_theme/node_modules/cosmiconfig/dist/createExplorer.js:226:12)
    at Explorer.createCosmiconfigResultSync (/drupal/themes/custom/my_custom_theme/node_modules/cosmiconfig/dist/createExplorer.js:259:31)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Rename THEMENAME in the *.info.yml file

In the THEMENAME.starterkit.yml file there is a reference to THEMENAME,

libraries-extend:
  bootstrap/framework:
    - THEMENAME/framework

It would be great if the set-theme-name.sh script could also change that along with the file names.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.